Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: JScript Panel script discussion/help (Read 300851 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: JScript Panel script discussion/help

Reply #1300
^That might be a component bug I need to fix. There have been internal changes to how Repaint / RepaintRect work and everything seemed fine in my own testing and no one reported issues while the component was in beta for a few days. I can't do anything today but might have a fix tomorrow.

Re: JScript Panel script discussion/help

Reply #1301
Thanks for the update and the quick info.


Re: JScript Panel script discussion/help

Reply #1303
Thanks for the quick update. That repaint issue seems working fine now.


Re: JScript Panel script discussion/help

Reply #1305
Reverting to JSP 3.3.29, due to audio stream execution issues, stops and freezes.

Edit: Maybe I have a problem with a disk.

Re: JScript Panel script discussion/help

Reply #1306
It's unlikely changed in the latest version would cause this. Since JSP3 doesn't touch audio it could only prevent fb2k from playing normally by gobbling up all the resources it can and that would be noticeable in windows task manager.

Re: JScript Panel script discussion/help

Reply #1307
Is it possible to create a search field in jscript panel 3 ? Like the picture link ?  Global search . Artist song album ...
https://imgur.com/sJKP8Ex
Thanks you

 

Re: JScript Panel script discussion/help

Reply #1308
Possible but not easy. I've never done it and I use utils.InputBox / utils.TextBox popup dialogs instead.

Smooth Browser has a search filter in the top left corner for filtering library items. Also, JSPlaylist has inline edit boxes for customising column title formatting, group headers etc. They will be using the inputbox.js files in their respective folders. I will not be helping with this.


Re: JScript Panel script discussion/help

Reply #1309
Possible but not easy. I've never done it and I use utils.InputBox / utils.TextBox popup dialogs instead.

Smooth Browser has a search filter in the top left corner for filtering library items. Also, JSPlaylist has inline edit boxes for customising column title formatting, group headers etc. They will be using the inputbox.js files in their respective folders. I will not be helping with this.


Thanks you anyway for your support . I appreciate...👍👍👍

Re: JScript Panel script discussion/help

Reply #1310
Is it possible to display the %date% field in Smooth Browser?


Re: JScript Panel script discussion/help

Reply #1312
Is it possible to create a search field in jscript panel 3 ? Like the picture link ?  Global search . Artist song album ...
https://imgur.com/sJKP8Ex
Thanks you


I have a mod version of SMOOTH PLAYLIST.
https://github.com/seongbin/Vibe2



It looks very nice. How do I add a new panel to this?

Re: JScript Panel script discussion/help

Reply #1313
3.3.35

https://github.com/jscript-panel/release/releases

https://jscript-panel.github.io/docs/changes/

This adds utils.RemoveFolderRecursive and $jsp3_since - a title formatting function for showing the difference between a given date string and now. Can be used playback statistics, last.fm last played dates etc.

edit: attached is an example using $jsp3_since(%lfm_last_played%) from Last.fm Playcount Sync

Woah, thank you very much the newly added function.
Question, where can I change the value? I'd like to change it to something like
0d > Today
1d > Yesterday
3d > 3d ago
7d > Last week
2wk > 2 weeks ago
4wk> Last month
52wk> Last year
104wk > 2 years ago

Re: JScript Panel script discussion/help

Reply #1314
You can't. It's done in C++.

I was lazy using a built in SDK method which only returns weeks / days. Strictly speaking it also included hours/mins/seconds but I stripped that way.

I've now updated it so weeks/days are omitted for anything over one year like this new screenshot. I'm not breaking it down like your request though. You can do it in pure JS if you like.


Re: JScript Panel script discussion/help

Reply #1315
Thanks, no wonder I couldn't find it.
Anyway, it appears there is a problem. The last played status will disappear when the music is played for 2/3 or registered/scrobbled, and also the last update seems showing an odd number but will also disappear upon restarting fb2k.
$jsp3_since(%lfm_last_played%)
Spoiler (click to show/hide)

and this one with $jsp3_since(%last_played%)
Spoiler (click to show/hide)

Re: JScript Panel script discussion/help

Reply #1316
Oops, quite an obvious bug not handling anything less than one day with 0d like the previous version did.

Can you post the actual input for the borked years? I have no idea what's going on there.

Never mind, I see it. Fixed version coming soon.

Re: JScript Panel script discussion/help

Reply #1317
Thanks for the quick reply
Spoiler (click to show/hide)

Re: JScript Panel script discussion/help

Reply #1318
Stopped at 3.3.29

From later versions, in my configuration, I have graphical slowdowns and micro freezes with the spin discs modules running radio streams.

With 3.3.29 no problems in the graphics plugins, with albuart.js, with thumbs.js and no problems with the rotation of the spin disc.

With the same configurations.



Re: JScript Panel script discussion/help

Reply #1320
Stopped at 3.3.29

From later versions, in my configuration, I have graphical slowdowns and micro freezes with the spin discs modules running radio streams.

With 3.3.29 no problems in the graphics plugins, with albuart.js, with thumbs.js and no problems with the rotation of the spin disc.

With the same configurations.

With 3.3.37 there are no graphic slowdowns and spin disc rotation is also ok.

The problem of updating the albumart.js sample remains as per the video I posted previously.

Problem not present with version 3.3.29


Re: JScript Panel script discussion/help

Reply #1321
Still can't reproduce. I tried copying your layout with a tab stack and spinning album art nonsense which I hate. I have no idea how anyone can use it for more than 10 seconds before getting sick of it.

FWIW, my pc is pushing 10 years old now. Not exactly cutting edge.

Sorry for the huge file. :/


Re: JScript Panel script discussion/help

Reply #1322
Still can't reproduce. I tried copying your layout with a tab stack and spinning album art nonsense which I hate. I have no idea how anyone can use it for more than 10 seconds before getting sick of it.

FWIW, my pc is pushing 10 years old now. Not exactly cutting edge.

Sorry for the huge file. :/

De gustibus non est disputandum.

The spin disc has nothing to do with all this.
Just create two tabs in sequence and load the Album Art sample to replicate the problem that doesn't exist on 3.3.29 while it does on 3.3.37.

https://www.youtube.com/watch?v=H_ZkRSuJ_Bk

Re: JScript Panel script discussion/help

Reply #1323
I can confirm @ApacheReal report.
I'm not sure when it happened, but it was minor at first, but has recently gotten more noticeable.
I assumed it was just a file seeking issue, but I think my drive (ssd nvme) is capable of loading those images. I also compressed the images fetched by the latest fm Bio script, which typically result in large file sizes; there is a significant reduction after compression, which I believe will assist load faster, but the problem persist.
Unfortunately, there is no log in the console or with the advanced logging option to identify the issue.

Spoiler (click to show/hide)

Re: JScript Panel script discussion/help

Reply #1324
So the problem seems isolated to tab switching. Is that right?

Can you put bad code in each panel to make it throw a script error. Does it render the error message on every tab switch?

Just an empty panel with

Code: [Select]
blah();

would do.