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

Re: JScript Panel script discussion/help

Reply #1275
That was on purpose since the first version of the combined text+images script. If you want white all the time for consistency, try this:

edit: I use white because when there's an image, I blur it and then a semi-transparent dark overlay is drawn over the top. Using UI colours would be unpredictable and might not always be readable.

edit2: the first attachment wasn't quite right. This updated one should be OK.

edit3: the next version will have support for displaying the stub image from the main album art preferences>Artist. I should have thought of that before.

Re: JScript Panel script discussion/help

Reply #1276
Thanks for explaining, I just hadn't used that sample long enough obviously.  I do like the background overlay and see why plain white is the best choice there.  Cool on adding the stub image choice to load when no last.fm image exists!

Re: JScript Panel script discussion/help

Reply #1277
Here's a test version with support for display the album art>artist stub image from the main preferences when no last.fm images are found.

The attachment need to be extracted to the root of the component folder. This for the combined last.fm bio+images script and the original Thumbs in last.fm mode only.

edit: original attachment removed. See below.

Re: JScript Panel script discussion/help

Reply #1278
Here's a new attachment with a bug fix for certain artist images not being found. Urgh. :/

Like the instructions above, this needs to be extracted to the root of the component folder.

Original thumbs users also need to replace the code in their panels. No changes needed for last.fm bio+images users.


Re: JScript Panel script discussion/help

Reply #1279

I think tab stacks are unrelated to JSP 3, but rather a basic UI element from foobar or a Windows element.

Marc did mention replacing the tabs with a single panel but only for JSP panels on this post, but it was too advance for me.
Spoiler (click to show/hide)


This piece of code really helps!


Re: JScript Panel script discussion/help

Reply #1280
i made a combine panel in jscript panel 3 of the bio and the thumbs from Marc2K3 of course.



the problem is like this : on right click on the text , you are suppose to have the panel menu of the text ( size and others )
but i have the panel of " reload "
after i click reload then the panel of the text appear on right click
How do i fix that  ? . thanks a lot

 

Re: JScript Panel script discussion/help

Reply #1281
Hi :) @Jul2323

Thanks for your script.
But...

JScript Panel 3.3.27 (Thumbs by marc2003)
JavaScript 実行時エラー
型が一致しません。
File: <main>
Line: 167, Col: 9

Type does not match.

Is it not enough to just panelize JSP3 and load "Bio_Thumbs.txt"?
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 script discussion/help

Reply #1282
Yes u can . If u can fix also what I write in the previous message .... Very annoying. Thanks ... AirKen

Re: JScript Panel script discussion/help

Reply #1283
@Jul2323

JScript Panel 3 Properties > Export > *.wsp file
Could you please upload it?
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 script discussion/help

Reply #1284
Tomorrow I am at home ... I will send you

Re: JScript Panel script discussion/help

Reply #1285
Hello, @marc2k3 I have a small issue when using the on_playback_dynamic_info_track function in conjunction with External Tags or m-TAGS. This issue seems to be reciprocated between both of them and I feel like it might be with the way foobar2k is handling tag editing with streams.

Basically in short, when I click on the m-TAG containing a radio station or if there's any stream metadata update. I request an image to download from the Radio station's API page which also has other related data in the JSON field (for reference: https://gensokyoradio.net/api/station/playing/) issue is when I'm trying to populate these JSON fields using UpdateFileInfoFromJSON function to my m-TAGS file or External Tag file (which supports writing to APE tags/SQLite database) my foobar enters a state of write loop where it briefly pauses the stream, writes then plays then abruptly pauses the stream then write the same value again and so forth...

Any idea if there's a way to circumvent this? I can only think of writing it to another file that way it doesn't causes the write loop but not sure how m-TAGS or External Tag would possibly read from another file apart from the one it's using to play.

Re: JScript Panel script discussion/help

Reply #1286
I'm using fb2k SDK methods for writing tags and I do not believe I can do anything differently. It's robust for local files and I have no interest in how it behaves with intermediary components like m-tags or whatever.

Re: JScript Panel script discussion/help

Reply #1287
I would like to ask if it is possible to change the default font "FontAwesome"? What should I do, thanks a lot.


Re: JScript Panel script discussion/help

Reply #1289
How to combine $directory_path(%path%)\Cover with $directory_path(%path%)\..\Cover commands in Custom Folder setting of Thumbs Sample?? Please forgive me for this stupid question, i have no knowledge of scripting whatsoever. Thank's in advance for your kindly help.


Re: JScript Panel script discussion/help

Reply #1291
I will improve the custom folder dialog on the next release. It's still ridiculously easy to follow the current instruction of separating multiple folders with the pipe character | but it can be improved with a multi-line edit box where each folder goes on a new line. That will probably come tomorrow.

Re: JScript Panel script discussion/help

Reply #1292
Thanks for your reply Marc2k3, i'm really not meticulous for something is already obvious in the dialog Panel :-*  O:) Forgive me if it's bothering you.
If you have time please add custom path also for all music review panel, i save cache files of album review in my Eksternal HDD. Thank you for your very useful Jscript3 component, make my life is easier :D


 

Re: JScript Panel script discussion/help

Reply #1294
Ok, thanks for the information. Let's see if i can make it ;D

Re: JScript Panel script discussion/help

Reply #1295
Ok, thanks for the information. Let's see if i can make it ;D
FYI, this is my Eksternal HDD directories path, H:\Audio\%ARTIST%\#Artist Bio\Allmusic, so i just put folders.artists = H:\Audio\%ARTIST%\#Artist Bio\Allmusic; at the Code first line ?? Is this correct?

Re: JScript Panel script discussion/help

Reply #1296
No, you cannot use title formatting there. It must be an absolute path to a base "artists" folder. Per artist folders will be generated inside based on the %album artist%*. The script will automatically handle characters that are illegal in windows folder/filenames like "\/*|:<>?. While possible in title formatting it would be tedious and it's why a utils.ReplaceIllegalChars method exists in the component.

https://jscript-panel.github.io/docs/namespaces/utils/#utilsreplaceillegalcharsstr-modern

* that's specific to allmusic review, other scripts like last.fm bio, similar artists, musicbrainz, thumbs all use $meta(artist,0).

edit: i know scripts like WilB's SMP bio offer more advanced customisation of how to configure folder structure but I'm not goinng down that route. If you don't like how this behaves, don't use it or modify it yourself.

Re: JScript Panel script discussion/help

Reply #1297
Oh, It’s unfortunate, i've made it with Text Reader and Thumbs panel to access my Artists cache files so i don't have to download it again everytime i play the tracks. :-\ Thanks for your help and response anyway.

Re: JScript Panel script discussion/help

Reply #1298
With the allmusic script, files are only downloaded once. If a cached file is detected, it will display it and will never lookup that artist/album again.

BTW, the most common file size is 2KB with the max in my collection being 6KB. For 1000 albums, that could be 6MB (more likely 2-3MB) and for 10000 albums 20-30MB. I really don't see the point in trying to customise the location.

Other scripts like last.fm bio, musicbrainz etc are different because online content can change so new lookups are performed if the cached data is over 24 hours old.

Re: JScript Panel script discussion/help

Reply #1299
@eurekagliese

I think there are some changes to be made to Custom Track 3.1 after updating to JSP 3.3.30.

Currently rolling back JSP 3 to the previous version.