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: WSH Panel Mod script discussion/help (Read 1399846 times) previous topic - next topic
0 Members and 5 Guests are viewing this topic.

WSH Panel Mod script discussion/help

Reply #4300
i've updated my scripts. *snip*


Just took a quick peek and was curious about minor tweaks in last.fm bio. Is it strictly tied to colors in main options of fb2k? EG: say I want to just alter the artist color and not the main text body color. And can artist name be positioned with the 'center' argument?

Neither is that important but was wondering if possible and where to do it if so. I can live with the older version I use now if you have made this un-editable for customization.

WSH Panel Mod script discussion/help

Reply #4301
inside the on_paint function...

gr.GdiDrawText(list.header_text(), panel.fonts.title, _.RGB(255, 0, 0), 10, 0, panel.w - 20, 24, CENTRE);

WSH Panel Mod script discussion/help

Reply #4302
Ah. The  _.  before the RBG() part of the new change? I tried without and got an instacrash. 


Thanks.

WSH Panel Mod script discussion/help

Reply #4303
to marc2003

In Post #4297  I public link to script thumbs + last.fm bio. Please help me add to this script album_art page.
I want change "x" button to menu button - thumbs, lastfm_bio, album_art.

WSH Panel Mod script discussion/help

Reply #4304
that's not happening as it would require a lot of editing and i'm lazy.

just put thumbs in custom folder mode and it will display all images in the currently playing track's folder. you can even modify the folder it uses and it supports whatever title formatting you like but it works at a folder level, not file.

WSH Panel Mod script discussion/help

Reply #4305
I want to add a button for 'playback order context menu' inside my foobar main window similar to the 'Menu" button.

I found that the menu button can be added with the following script from "Marc2003's script."
Code: [Select]
buttons.buttons.menu = new _.button(10, 8, bs, bs, {normal : "buttons\\menu.png"}, function () { _.menu(0, 16); }, "Menu");

I don't know where I have to change for my purpose.
Please, give me some hint.
Thanks you very much for reading.

WSH Panel Mod script discussion/help

Reply #4306
use one of the samples included with the component itself...

https://code.google.com/p/foo-wsh-panel-mod...n%28Menu%29.txt

edit: i just remembered that version doesn't include the images. mine does...

https://github.com/19379/foo_uie_wsh_panel_mod/releases

if you don't want to use my updated component, you can still extract the required files by opening the .fb2k-component file with 7-zip or other archive reader.

WSH Panel Mod script discussion/help

Reply #4307
use one of the samples included with the component itself...

https://code.google.com/p/foo-wsh-panel-mod...n%28Menu%29.txt

edit: i just remembered that version doesn't include the images. mine does...

https://github.com/19379/foo_uie_wsh_panel_mod/releases

if you don't want to use my updated component, you can still extract the required files by opening the .fb2k-component file with 7-zip or other archive reader.

Thank you very much for your help.
According to your instruction, it was very easy to make the PBO button in my foobar control window. 


WSH Panel Mod script discussion/help

Reply #4308
I curse last.fm every single day for messing up the API (and hence playcount sync) with the update



the background updates as you listen still work. it's only the bulk import that is broken.

Unfortunately, it appears the background updates are now broken, too. Play counts don't get updated anymore. I get the following error in the console:
Code: [Select]
Last.fm Playcount Sync: {"error":6,"message":"Track not found","links":[]}

WSH Panel Mod script discussion/help

Reply #4309
it's working fine for me. are you seeing that message with every track or just some?

WSH Panel Mod script discussion/help

Reply #4310
are you seeing that message with every track or just some?
I'm seeing it with every track I've played back today. It was working fine last night. Now, it happens with some tracks.

This is a track which doesn't work:
Code: [Select]
Opening track for playback: "D:\Music\A Split - Second - Flesh (1991 Remix)\05 A Split - Second - Flesh (Slow).flac"
Audioscrobbler: Submitting track...
Audioscrobbler: Submission succeeded.
Last.fm Playcount Sync: Contacting Last.fm....
Last.fm Playcount Sync: {"error":6,"message":"Track not found","links":[]}

This is a track which works:
Code: [Select]
Opening track for playback: "D:\Music\Aphex Twin - I Care Because You Do\09 Aphex Twin - Mookid.flac"
Last.fm Playcount Sync: Contacting Last.fm....
Last.fm Playcount Sync: Last.fm responded ok. Attempting to update playcount...
Last.fm Playcount Sync: Playcount updated successfully.
Audioscrobbler: Submitting track...
Audioscrobbler: Submission succeeded.

 

WSH Panel Mod script discussion/help

Reply #4311
well unfortunately i can't do anything about it. the API is working as expected - it's just not liking some tracks for whatever reason. if you can still view them under the library pages of your user account on the last.fm site, it might start working again sometime in the future.


WSH Panel Mod script discussion/help

Reply #4313
that's not happening as it would require a lot of editing and i'm lazy.

just put thumbs in custom folder mode and it will display all images in the currently playing track's folder. you can even modify the folder it uses and it supports whatever title formatting you like but it works at a folder level, not file.


I definitely like you!
Such a simple solution at the lowest cost.

WSH Panel Mod script discussion/help

Reply #4314
I created a script thumbs + last.fm bio.txt, using ideas from the script album art + allmusic review.txt (wsh_marc2003-v8).

Excellent work!

WSH Panel Mod script discussion/help

Reply #4315
@marc2003

You kind of unwittingly provided a perfect solution for this question I had a while back. Your latest ratings script uses guifx v2 fonts instead of images which is exactly what I am using in my ELPlaylists. Also proved to be far easier to beat into shape than the previous renditions. Had to edit a couple of minor things in two of the provided scripts. Basically changed it so it only shows one icon instead of five and which icon is used. Side bonus is not writing to file since it uses the play count component and an extra playlist isn't required if I miss the one minute window.

Image

Thanks again for sharing these.

WSH Panel Mod script discussion/help

Reply #4316
i have a new script for submitting plays from foobar2000 to the new listenbrainz service. it's provided by the same people who run musicbrainz. you can read about it here:

http://listenbrainz.org/

it's only at alpha stage and all you can do is view your submitted plays. things like stats, recommendations, etc are in their future plans but don't expect much for now. also, check their import page. that can import all your plays from last.fm to their site.

my script is available here: https://github.com/19379/wsh_listenbrainz

WSH Panel Mod script discussion/help

Reply #4317
i've just updated the above script with a whole load of tag remapping that needs to be done to make it play nice with their whitelist of acceptable tags.

WSH Panel Mod script discussion/help

Reply #4318
i have a new script for submitting plays from foobar2000 to the new listenbrainz service. it's provided by the same people who run musicbrainz. you can read about it here:

http://listenbrainz.org/

it's only at alpha stage and all you can do is view your submitted plays. things like stats, recommendations, etc are in their future plans but don't expect much for now. also, check their import page. that can import all your plays from last.fm to their site.

my script is available here: https://github.com/19379/wsh_listenbrainz

so fed up with last.fm. THERE IS HOPE!

Thank you!

WSH Panel Mod script discussion/help

Reply #4319
Does someone know?
How many requests can be send from same IP to Last.fm server?
Currently i have 2 scripts with same API: YT Radio and Genre Tag which parse diferent url reponses.
This 2 scripts will send 2 request per sec, on track play..

WSH Panel Mod script discussion/help

Reply #4320
5 requests per second. you'd know this if you read the "terms of service" when you applied for your API key.

Quote
You will not make more than 5 requests per originating IP address per second, averaged over a 5 minute period, without prior written consent.


the way that is worded, it looks like you can make many more requests per second so long as you don't go over 1500 in any 5 minute period.

WSH Panel Mod script discussion/help

Reply #4321
JS Smooth Browser 1st beta available for those interrested by:



link

WSH Panel Mod script discussion/help

Reply #4322
18MB? that's a lot of code!!

(i'm sure there is something else in there as well.. )

edit: trying to that run that script with portable foobar + music on a usb stick = fail. i'll try again when i have my own computer built in the week.

WSH Panel Mod script discussion/help

Reply #4323
5 requests per second. you'd know this if you read the "terms of service" when you applied for your API key.

Quote
You will not make more than 5 requests per originating IP address per second, averaged over a 5 minute period, without prior written consent.


the way that is worded, it looks like you can make many more requests per second so long as you don't go over 1500 in any 5 minute period.


Thanks. This is impossible in normal use. But what i want, is to be able to tag all my files from library playlist.
I was tag 17 000 files to test this, and more 2000 today, nothing bad happens 
Request is send every 2 sec..



WSH Panel Mod script discussion/help

Reply #4324
18MB? that's a lot of code!!

(i'm sure there is something else in there as well.. )

edit: trying to that run that script with portable foobar + music on a usb stick = fail. i'll try again when i have my own computer built in the week.


ahah, 18MB for the GENRE image pack included , script is only 24 kb ...

ok, tell me how it turns on your PC and what's this "fail". Thank you.