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 (Read 297548 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: JScript Panel

Reply #925
Thanks marc2k3 :)
foobar20000 v2.0 beta 4 64bit Windows 11
Sample Script: Last.fm Bio + Thumbs
https://i.imgur.com/wdRY2QV.png
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel

Reply #926
3.1.0-Beta.4

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

This should fix a crash report that was recently submitted.
The Spectrogram Seekbar has been updated to save as WebP which takes much less space. If you have a cache of PNG files, the script will offer to delete them for you.

Re: JScript Panel

Reply #927
I keep in mind your negative Bias and offensive approach, that once again confirm with your posts..
What you must keep in mind is that everything done here is entirely voluntary, and we benefit from the time and effort other people are willing to contribute.  I don't have the skills in software to make a contribution, so I'm a beneficiary of those who do, but I have other skills which I contribute on other forums.  That's known as "pay forward".

If you piss a contributor off so that he's no longer willing to take the hassle, we all lose out.  I was a major contributor to a club, but resigned from the committee and withdrew my contribution to the club because I was banging my head against a brick wall and it was bad for my health.

You need to be grateful for any answers you get to your queries, and accept that if they're not the answers you wanted that's just too bad.  You might think you are helping by pointing out bugs or whatever, but what anyone then does with your information is out of your hands.

We cannot control what other people do, we can only control what we ourselves do.
It's your privilege to disagree, but that doesn't make you right and me wrong.


Re: JScript Panel

Reply #929
With CUI dark mode, I can easily live without PSS. Not sure about others??

Of course the biggest sticking point for me would be updating the javascript for JSP3. It quite literally was hell doing it for JSPlaylist/Smooth Browser etc. I don't really fancy doing it again for more code I didn't write. I know the buttons/display are much less complex but it's not nothing.

edit: I suspect the desire for 64bit will be quite low anyway. People will have plenty of non-visual 32bit components they'll want to stick with.


Re: JScript Panel

Reply #930
3.1.0-Beta.5

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

Fixes a bug with utils.TextBox where the prompt text wouldn't fill the whole width before wrapping.
Fixes a bug with the spectrogram seekbars not playing nice with new versions of foo_skip causing ffmpeg to get stuck and not exit.
Fixes a bug with last.fm bio and thumbs not being able to download and save files if the artist ended with period character(s).*

*I think this has been broken since v3.0.0 when I moved away from using ActiveX objects towards more native C++ code. Other online scripts were unaffected. Anyone else using utils.DownloadFileAsync must make sure they sanitise folder names in the path themselves so they don't end with a period either. See here for an example:

https://github.com/marc2k3/jscript-panel/commit/6c2d05cba70fb089a72223194454c5fc6f491045

Re: JScript Panel

Reply #931
3.0.4.... probably the final release for fb2k v1 - the minimum requirement is now 1.6.6 which I hope shouldn't be a problem.

https://github.com/marc2k3/jscript-panel/releases/tag/3.0.4

Try not to use this on fb2k v2. The Beta 3.1.x series has some optimisations and many sample fixes.


Re: JScript Panel

Reply #932
3.1.0-Beta.6

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

Adds utils.Run and utils.RunCmdAsync /  on_run_cmd_async_done. Slowly getting rid of most ActiveX objects from my scripts. htmlfile will never get a replacement though.

Existing users of Spectrogram Seekbars must re-import from the Samples button. This is also the case for some other scripts. Full details on the changes page.

https://marc2k3.github.io/jscript-panel/docs/changes/#v310-beta6

Re: JScript Panel

Reply #933
3.1.0-Beta.7

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

No real component changes from Beta 6.

The main change is fixing bugs introduced with Beta5/6 where the spectrogram seekbars were not always refreshing when ffmpeg had finished processing the file. It was more likely to happen if using foo_skip. I hope this is fixed now. Scripts need re-importing (again).


Re: JScript Panel

Reply #934
3.1.0 Final for foobar2000 v2 Beta

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

The changelog is a big old wall of text but it's actually more important for sample users to read it than people who write their own scripts. Sorry!  :D

https://marc2k3.github.io/jscript-panel/docs/changes/3-1-0/#sample-changes

New features for script authors

https://marc2k3.github.io/jscript-panel/docs/changes/3-1-0/#new-additions

The Gallery has been updated with more detailed setup/usage notes for most samples.

https://marc2k3.github.io/jscript-panel/gallery/

3.0.4 remains available for those sticking to fb2k v1.6.6 - 1.6.12.

Re: JScript Panel

Reply #935
Problem with Spectrogram Seekbar noted after updating from 3.1.0 Beta 4 to 3.1.0 Final (fbv2 beta 8 64-bit);  sample was re-imported as per instructions:

When opening Foobar with a cleared/empty spectrogram_cache folder, when beginning playback only the marker shows/moves against an empty background, although the webp spectrogram image for the song is created in the cache.  This behavior continues for each song played, until Foobar is closed and then re-opened, at which time the image is displayed for the last selected song, and then works normally for each song played after that.  If the cache is cleared while Foobar is still open, images continue to be created for new songs.  But if the cache is cleared, then Foobar closed immediately afterward, re-opening Foobar will again result in the songs played having no background image until the next restart, even though the webp's are being created in the cache.

Sorry about the awkward description.


Re: JScript Panel

Reply #936
If anyone download this in the last 100 minutes and wanted to use the Text Display sample, it needs downloading again as it was buggy. Sample needs re-importing too. Apologies.

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

@sveakul , I'll come back and reply properly in a bit.

Re: JScript Panel

Reply #937
RE: spectrograms, I have no idea what's going on there. Clearing the cache is the same as having never played the file before. There is no internal tracking - just a simple file existence check every time playback on a new track starts. If an image not matching the cached filename is found, a new one is generated and stored.

Just focusing on the first track here...



I play for the first time and get a little hourglass for a second. Now I listen for a few seconds and clear the cache. The image is in memory because the track is playing. But when I manually stop the image is gone. Play the track again and a new image is generated.

edit: i did add new code in Beta.6 to make it run in background threads but if the images are in the cache, that part must be working??

You definitely have this inside your panel? (near the bottom). This forward notifications when complete...

Code: [Select]
function on_run_cmd_async_done(task_id) {
seekbar.run_cmd_async_done(task_id);
}

You said you imported the updated file as instructed so it should be there but I can't think of anything else???

Re: JScript Panel

Reply #938
Hi,

after installing the new Text Display, I had a message after restarting fb2k.

"Die Eigenschaft "value" eines undefinierten oder Nullverweises kann nicht abgerufen werden."

The "Value" property of an undefined or zero reference cannot be called up.

File: <main>
Line: 37, Col: 3

Panel loading is successfully, only an info :-)

Re: JScript Panel

Reply #939
If you used Text Display on an earlier Beta or 3.0.x did you re-import the script as mentioned on the release page?

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

What's the code on your line 37? Right click the panel>Configure.

It should be

Code: [Select]
return panel.rbtn_up(x, y, text);



Re: JScript Panel

Reply #940
Hi,

that's right: return panel.rbtn_up(x, y, text);

message comes up direct after starting foobar (x64)

Re: JScript Panel

Reply #941
You posted this...

Code: [Select]
File: <main>
Line: 37, Col: 3

but it can't be right. It's quite literally impossible for that line to error on startup because it's only triggered by you right clicking the panel.

Re: JScript Panel

Reply #942
Hi,

ooops! - I'd a second panel .... without updating it  ;) - My mistake, please excuse. I no longer have that on the note.

all ok ! good job

 

Re: JScript Panel

Reply #943
I play for the first time and get a little hourglass for a second. Now I listen for a few seconds and clear the cache. The image is in memory because the track is playing. But when I manually stop the image is gone. Play the track again and a new image is generated.
Thanks for your reply.  Yes, if the cache is cleared while Foobar is still open, and Foobar then kept open, when more songs are played images are correctly shown as you described.

The problem only shows up if the image cache is cleared, and then Foobar is exited immediately afterwards.  Then, when Foobar is started again, no image is shown when a track is played although the webp is generated inside the cache folder.  If Foobar is exited again, when restarted the images are shown again as normal.

I do have the script section you referenced.



Re: JScript Panel

Reply #945
The problem only shows up if the image cache is cleared, and then Foobar is exited immediately afterwards.

This doesn't make any sense to me. The script only cares about the existence of a single image when playback begins. The filename comes from a combination of the cache folder + fb2k title formatting of the audio file ($crc32(%path%)) + the ffmpeg options.

If this file exists, display it.
If it doesn't exist, a whole bunch of checks are performed to see if it's a file that can be fed to ffmpeg (length, not a cue, stream etc.), then a background task runs to create the image.

I don't feel there is anything I can do about it.

You'll just have to bin it.

Re: JScript Panel

Reply #946
Thank's for your hardwork with your JScript Panel. It makes my Foobar2000 x64 theme more complete. If you have time please add "Custom Folder" option in Allmusic Review & Last.FM Bio similar to Thumbs. Also if you add "Custom Image Background" option to Tex Display it would be beautiful. Keep it up bro. Greetings from Indonesia.

Re: JScript Panel

Reply #947
The problem only shows up if the image cache is cleared, and then Foobar is exited immediately afterwards.
I don't feel there is anything I can do about it.

You'll just have to bin it.
OK, well thanks for taking a look at it anyway!  The reason I ran into the issue I described right away is because I use the script addendum you created to auto-clear all the cached images upon Foobar's exit.  That works, but then after the next start of Foobar I get the blank image when starting to play.  There must be something else in my setup interfering.  I'm fine sticking with 3.1.0 Beta 4 where for whatever reason this doesn't happen.  I'll give it another go when v2 stabilizes.

Re: JScript Panel

Reply #948
If you have time please add "Custom Folder" option in Allmusic Review & Last.FM Bio similar to Thumbs.

You can use Text Reader to display the content of any plain text files.

https://marc2k3.github.io/jscript-panel/gallery/text-reader/

Quote
Also if you add "Custom Image Background" option to Tex Display it would be beautiful.

This exists in the latest version. Only the first Beta didn't have it.

Re: JScript Panel

Reply #949
If you have time please add "Custom Folder" option in Allmusic Review & Last.FM Bio similar to Thumbs.

You can use Text Reader to display the content of any plain text files.

https://marc2k3.github.io/jscript-panel/gallery/text-reader/

Quote
Also if you add "Custom Image Background" option to Tex Display it would be beautiful.
If you have time please add "Custom Folder" option in Allmusic Review & Last.FM Bio similar to Thumbs.

You can use Text Reader to display the content of any plain text files.

https://marc2k3.github.io/jscript-panel/gallery/text-reader/

Quote
Also if you add "Custom Image Background" option to Tex Display it would be beautiful.

This exists in the latest version. Only the first Beta didn't have it.
This exists in the latest version. Only the first Beta didn't have it.
If you have time please add "Custom Folder" option in Allmusic Review & Last.FM Bio similar to Thumbs.

You can use Text Reader to display the content of any plain text files.

https://marc2k3.github.io/jscript-panel/gallery/text-reader/

Quote
Also if you add "Custom Image Background" option to Tex Display it would be beautiful.

This exists in the latest version. Only the first Beta didn't have it.

Thank's for your reply. I already use the final version. As you can see from the images  i attached there is no option as in Thumbs.
I ask this because it would be nice if i don't have to always redownload the info that i already have it in Artist folder at my hardisk Library. I also can not find "Custom Image Background" option in Text Display.