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 300819 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Re: JScript Panel script discussion/help

Reply #1225
JScript Panel 3.3.20 (Custom Track 3.1 by eurekagliese)
JavaScript runtime error
Unable to get property 'colour' of undefined or null reference
File: <main>
Line: 1931, Col: 4


Get this error when I play an album cover with an single color, seems to be the only issue I've found

 

Re: JScript Panel script discussion/help

Reply #1226
Can I set background color opacity in JSplaylist?

I want to peel off the mask of a beautiful girl in wallpaper.
But I'm ignorant. Could you please save the princess?


Thx!

Re: JScript Panel script discussion/help

Reply #1227
Thanks for bio scripts!


Re: JScript Panel script discussion/help

Reply #1228
Hello again, Marc. Is there any plan to add more features to the last.fm bio like fetch the artist's country flag, genre, and additional information like the layout on Wil-B's Biography.

I'm in the process of changing my mind on this. A preview...


Re: JScript Panel script discussion/help

Reply #1229
I'm looking forward to 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 #1230
Here are some files for testing. Save the .js in the component folder\samples\js - the .txt goes in the panel. It's optional and can be turned off via the right click menu. The Twitter Color Emoji font is required for country flags.




Re: JScript Panel script discussion/help

Reply #1231
@marc2k3

panel crashes.

samples\js\text.js
Last.fm Bio + Images

JScript Panel 3.3.20 (Last.fm Bio + Images by marc2003)
JavaScript 実行時エラー
'_firstElement' は定義されていません。
File: C:\Users\teamf\Documents\Online Soft 03\foobar2000\foobar2000 DUIK x64 (STANDARD)\foobar2000\profile\user-components-x64\foo_jscript_panel3\samples\js\text.js
Line: 233, Col: 6
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 #1232
@marc2k3

panel crashes.


samples\js\text.js
Last.fm Bio + Images

JScript Panel 3.3.20 (Last.fm Bio + Images by marc2003)
JavaScript 実行時エラー
'_firstElement' は定義されていません。
File: C:\Users\teamf\Documents\Online Soft 03\foobar2000\foobar2000 DUIK x64 (STANDARD)\foobar2000\profile\user-components-x64\foo_jscript_panel3\samples\js\text.js
Line: 233, Col: 6

replace "_firstElement" with "_.isElement" in text.js will fix it


Re: JScript Panel script discussion/help

Reply #1234
@seongbin

Many Thanks.

> replace "_firstElement" with "_.isElement" in text.js will fix it

_.isElement

Line: 233
Line: 264
Line: 265

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 #1235
@marc2k3

Could you arrange the three files in Reply #1233 ?
text.js, Last.fm Bio + Images.txt and common.js

Thanks.
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 #1236
Hello again, Marc. Is there any plan to add more features to the last.fm bio like fetch the artist's country flag, genre, and additional information like the layout on Wil-B's Biography.

I'm in the process of changing my mind on this. A preview...

Good to see it's coming. Thank you!

JScript Panel 3.3.20 (Custom Track 3.1 by eurekagliese)
JavaScript runtime error
Unable to get property 'colour' of undefined or null reference
File: <main>
Line: 1931, Col: 4

Get this error when I play an album cover with an single color, seems to be the only issue I've found
Thanks for the feedback, I'll look into it. For now, simply Reload the script whenever you play a song with a better album cover.

PS. Pardon me if the issue from my script is cluttering the thread.

Re: JScript Panel script discussion/help

Reply #1237
@marc2k3

Flag display

text.js, common.js and Last.fm Bio + Images.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 #1238
Pretty sure that only happens with the original code bundled with the component. If you really apply the .txt I attached, it should be fine. :/

edit: I'm attaching a zip with updated samples. It must be extracted manually into the component samples folder. Do this while fb2k is closed and then you can choose updated samples from the menu in the config window.

Re: JScript Panel script discussion/help

Reply #1239
Reply #1233 https://hydrogenaud.io/index.php/topic,110516.msg1036525.html#msg1036525
Reply #1230 https://hydrogenaud.io/index.php/topic,110516.msg1036520.html#msg1036520

text.js, common.js and Last.fm Bio + Images.txt.
I tried with these 3 files.
------
Reply #1238
samples
Last.fm Bio + Images.txt

Flag is not displayed.
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 #1240
Can I set background color opacity in JSplaylist?

I want to peel off the mask of a beautiful girl in wallpaper.
But I'm ignorant. Could you please save the princess?


Thx!
sorry,
×background color
○selected background color
It was a different sentence...

Re: JScript Panel script discussion/help

Reply #1241
Flag is not displayed.

Well it probably comes from applying that garbage fix from seongbin. Yes it was my fault for not attaching a required file in the first place but when you have no idea what the code is inside that function, you can't make stuff up and expect it to work.

It might have prevented the script error but it broke the html parsing. The results are cached so you need to delete those bad files.

To fix:

Close fb2k.
Open Explorer and go to profile folder\js_data. Search for files named lastfm.artist.extra.json and delete them all.

edit: but your screenshot in #1237 showed the font name and correctly extracted flag data. This definitely was because the .txt inside the panel had not been updated. How can anyone make any sense of this drivel. :/

Re: JScript Panel script discussion/help

Reply #1242
Creating a new Panel and loading Last.fm Bio + Images.txt.

Is there anyone who can successfully display the flag?
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 #1243
@marc2k3
Sorry, my bad carelessly handling it.

And I found that "Korea, Republic of" cannt be parsed as expected, cuz it has one more comma.
For test you can use "The Black Skirts" as artist name.

Re: JScript Panel script discussion/help

Reply #1244
Creating a new Panel and loading Last.fm Bio + Images.txt.

Is there anyone who can successfully display the flag?

It's working fine here.
I just remove the sample folder from the configuration folder first and then replace it with the extracted files from latest sample.zip provided by Marc above.
Spoiler (click to show/hide)

Perhaps the only visible minor issue is the genre tags Case.

Re: JScript Panel script discussion/help

Reply #1245
@eurekagliese

Thanks.

> I just remove the sample folder from the configuration folder first and then replace it with the extracted files from latest sample.zip provided by Marc above.

I have it configured that way
I don't think you're doing anything unnecessary.
The tag is %country%, right?



Thanks.
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 #1246
@eurekagliese

Thanks.

> I just remove the sample folder from the configuration folder first and then replace it with the extracted files from latest sample.zip provided by Marc above.

I have it configured that way
I don't think you're doing anything unnecessary.
The tag is %country%, right?
Spoiler (click to show/hide)
Thanks.

No, the latest Last.fm Bio + Images script by marc automatically retrieves the flags. It seems that it scrapes the artist profile from the last.fm site, therefore artists who don't have the "Born in" or "Founded in" won't have their nation flag displayed, unlike the Text Display script which depends on the country tag.
Perhaps, as workaround If the country flag is missing on Bio, loading the flag from tag like on Text Display can be might be used.

Re: JScript Panel script discussion/help

Reply #1247
No, the latest Last.fm Bio + Images script by marc automatically retrieves the flags. It seems that it scrapes the artist profile from the last.fm site, therefore artists who don't have the "Born in" or "Founded in" won't have their nation flag displayed, unlike the Text Display script which depends on the country tag.
Perhaps, as workaround If the country flag is missing on Bio, loading the flag from tag like on Text Display can be might be used.
@eurekagliese

Yes, I finally understand.
The genres of artists I listen to are mostly Indie and minor.

Thank you very much, that was helpful.

@marc2k3 Sorry for polluting the thread just for me.

Spoiler (click to show/hide)
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 #1248
I've added title format support for country flags in the bio script. Extract the attached zip to the ROOT of the component folder. You should overwrite all files except the dll which is not bundled here.

The default is $country_flag(%country%) but if you need to edit it, hold Shift + Winkey>right click>Edit properties. Look for 2K3.TEXT.BIO.FLAG.TF.

Country tags always take precedence over what is found online.






Re: JScript Panel script discussion/help

Reply #1249
Thanks for the update Marc, it's working nicely!

Spoiler (click to show/hide)