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

WSH Panel Mod script discussion/help

Reply #925
Hello marc2003,

my dui layout consists of 4 sections: 1. all my library viewers, podcast manager, playlist manager and playlist search, 2. tabbed playlist view, 3. playback section with now playing panel, queuecontents editor, wave seekbar, visualisation, bookmark panel, playbackrelated buttons and 4. all the selection info viewers with a toolbar with many, many buttons related to context menu. What i like about the 4. section is that all is acting synchron and even the toolbar buttons are dependent of the global settings in preferences -> display so when i apply a command from button i can be sure that it will be applied on what i see and what i see is in every viewer the same.

There are a few samples you've created that i find quite amazing: similar artist, last fm biography and mainly the artist art thumbs, not to forget the last one that deals with echonest. I would like to place them in my selection info section/tab container but then the pretty synchronicity gets lost as your scripts follow a different logic than the typical dui ui-elements. I suppose that it is not realizable but i prefer to ask someone who knows.

3 points must be possible to make the scripts acting like an ui-element:
  • Following the global option: prefer playing track or prefer selection. For the sake of synchronicity even the annoying parts of ui-elements are adopted. Maybe T.P. Wang has implemented already such functions to mimic the behaviour of that type of dui-panels? This behaviour seems to be outside of the ui-elements influence. There is a simple reason to mimic that annoying behaviour: to not increase the confusion that already exists.
  • Intelligent handling of multiple selections: f.e. a script can recognize if a multiple selection contains just one artist or multiple, so it shows similar artists or gives a note that selection contain multiple artists.
  • Your willingness to realize that if you consider that as senseful and are asked kindly.


Edit: typo/comprehendibility

WSH Panel Mod script discussion/help

Reply #926
the way it currently behaves (follow now playing, follow selection when playback is stopped) is purely a selfish design choice by me for the way i use it. i guess i'll have to look at adding user options. 

it's not helped by the fact i never plan things through before i start. i get bare functionality working first and then start layering crap on top and it gets harder to change.


WSH Panel Mod script discussion/help

Reply #927
An user option like "Dui selection info viewer" would make me ... amazingly happy? I don't know the right word in english! 

If it shouldn't be possible technically and the third point - your willingsness - exists i can request what is needed from T.P. Wand in WSH Panel Mod thread. Thanks so far!

 

WSH Panel Mod script discussion/help

Reply #928
adding an option to prefer playing or selected track is trivial and i'll probably post an update in a few hours.

i'm not sure how to handle multiple selections though. i might look into it if i get really bored.

WSH Panel Mod script discussion/help

Reply #929
adding an option to prefer playing or selected track is trivial and i'll probably post an update in a few hours.

I am not sure if you've understood what i am after. I mean following what is set in global preferences in display. I often switch this option and the dui selection info viewer are following this.

It seems to me that you are planning a way that would perfectly fit in CUI and how musicmusic implemented his viewers: different options in context menu of the viewer rather than the global one.

WSH Panel Mod script discussion/help

Reply #930
it's possible to use that as well. this will take more time to test though because i need to make sure my scripts work in columns UI as well.

WSH Panel Mod script discussion/help

Reply #931
Thank you so much, i am very curious to see the results.


WSH Panel Mod script discussion/help

Reply #933
Wow, except from one point it seems to fullfill every expectation. I should do more testing but i have to wake up at six for work - i will continue tomorrow in the early evening.

Let me sum up my little testing:

What works:

1. It follows the global: prefer selection or prefer playing track.
2. If selection is preferred and at same time a track is playing then playing track is displayed if selection looses focus

What not works:

3. If selection is preferred and at same time a track is not playing then [edit]on selection loosing focus[/edit] dui ui-element shows nothing and your biography shows furthermore the selection. It is the same logic like in (2.): If a selection looses focus (not sure if i am describing that behaviour in correct terms) then the selection isn't shown but either nothing or played track in case of playback. No question: that is somehow annoying and Peter already told that this is going to be changed someday but that's how it is now.

Good night!

WSH Panel Mod script discussion/help

Reply #934
marc2003, I updated your sample configs and the Thumbs panel still won't download album art. It displays images it got previously, but it won't get anything new. If this can't be fixed, could you tell me how to add images manually for the handful of artists in my library I don't yet have images for?

Thanks!

WSH Panel Mod script discussion/help

Reply #935
right click the panel>open containing folder and dump the images in explorer. then reload the script and it will display the images. i still have no idea why that program has stopped working for you.

one thing i forgot to mention about my latest update: the last.fm scripts now cache files using a different file extension meaning all the old files are now useless. you can delete all .xml files from your profile\wsh_lastfm folder. that should save a few kilobytes. the scripts now use JSON.

EDIT:

large update ahoy. the following scripts now have a new context menu option to choose "selection mode". because of large background changes, they all need re-importing.

artreader
cd jewel case
echonest
similar artists
simple biography
thumbs
thumbs2
thumbs3


by default, they will now use the main foobar display preferences but you can over ride this on a per panel basis.



weblinks and rating now use the main foobar preference and there is no option to change it (for now).

lastfm charts and similar artists have had some little bugs squished. all other scripts unchanged.

download: http://dl.dropbox.com/u/22801321/samples.zip

if you use my last.fm playcount script, that will need updating to the latest version. it works exactly as before. you don't get a choice but it needed some background changes to work.

you can grab that here: http://dl.dropbox.com/u/22801321/playcount%20sync.zip

WSH Panel Mod script discussion/help

Reply #936
updated again: http://dl.dropbox.com/u/22801321/samples.zip

echonest: fixed crashes with broken content. my fault for not double checking in the first place. 

WSH Panel Mod script discussion/help

Reply #937
If a selection looses focus ... then the selection isn't shown but either nothing or played track in case of playback.
That's how dui elements work. I gave expressed my complaint abut that confusing behaviour in an own thread more than one and a half ago. I was told that Peter announced that this going to be changed someday but till now nothing happened.

If it is possible and mainly not much work i would really appreciate if your scripts would show also nothing on selection focus lost in case of no playback. I can give a good reason why it is senseful to do so: If a selection info viewer doesn't show nothing then also the buttons in toolbar and all hotkeys defined by context menu commands also do nothing - the presence of information in your script can lead to confusion that buttons/hotkeys have a content to be applied on.

At last let me thank you not only for the last changes you've made but also for your effort to keep your scripts so userfriendly.

WSH Panel Mod script discussion/help

Reply #938
from what i can see there is no way for me to detect when a playlist item loses focus.

WSH Panel Mod script discussion/help

Reply #939
Oh, i think i should ask T.P.Wang for an function or just wait  till Peter removes this fallback for viewers, buttons and hotkeys. At friday i am in vacation for two weeks and when i come back i will decide me. 

Thanks so far!

WSH Panel Mod script discussion/help

Reply #940
@q-stankovic, i now remember experimenting with this selection problem quite awhile ago. see my post here....

http://www.hydrogenaudio.org/forums/index....mp;#entry689083

back then i think it worked the way you wanted it to. of course it was no good for me because i wanted to interact with the panel so T.P "fixed" it.

also, an update for echonest: http://dl.dropbox.com/u/22801321/samples.zip

-fix first item being highlighted on script startup.




WSH Panel Mod script discussion/help

Reply #941
back then i think it worked the way you wanted it to. of course it was no good for me because i wanted to interact with the panel so T.P "fixed" it.
It still works so in case of playback. In very rare cases even in case of no playback there is a fallback into no display - T.P didn't fix enough. 

WSH Panel Mod script discussion/help

Reply #942
i don't really see what your issue is then. you say it's rare for playback to be stopped and when foobar is playing, it works like you expect....

WSH Panel Mod script discussion/help

Reply #943
I think you misunderstood me: if there is no playback then your scripts won't show the typical fallback. Just sometimes (2% of 100%) and for me not reproducable even your scripts are falling back synchron to ui-elements and doesn't show the selection which focus was lost. I wanted to make a silly joke that T.Ps fix you talked about wasn't perfect.

WSH Panel Mod script discussion/help

Reply #944
you're right, i don't understand.

currently the only issue is when playback is stopped, correct?

when you select single items it behaves exactly like the selection properties/default art panel.
when you select multiple items (or browse album list etc), it shows the first item selected and we have no control over that.
when you click on an blank area of a playlist or other UI element, selection properties updates to "nothing selected". at this point the script falls back onto the last item selected. what am i missing here?

WSH Panel Mod script discussion/help

Reply #945
samples updated: http://dl.dropbox.com/u/22801321/samples.zip

similar artists: i broke the last.fm radio links with my last update a few days ago. this fixes it.

i also renamed echonest to news-reviews-blogs so people will now have some clue what it is.

WSH Panel Mod script discussion/help

Reply #946
another update   

news-reviews-blogs: improved date handling. should now show original article date if it exists. beforehand it only showed the date it was indexed.

WSH Panel Mod script discussion/help

Reply #947
^utils.FileTest can check for files.

Hmmm.... coding... I'm really lost on that one. Could someone provide an example line of code using it that would find .html and .pdf files in the audio file's folder and link it with a button?

Thx
TS
Geopoliticus Child Watching the Birth of the New Man

WSH Panel Mod script discussion/help

Reply #948
Is it possible to get the shouts about current playing song or artist?

WSH Panel Mod script discussion/help

Reply #949
@marc2003

your last update of news-reviews-blogs does not seem to work anymore: the panel always displays "Could not read this article"

Previous versions were working fine...
Decalicatan Decalicatan