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

WSH Panel Mod script discussion/help

Reply #3775
@ Falstaff

For the TF to work and show the original streams name it has to be  EvalWithMetadb(this.metadb) , otherwise %title% returns the current dynamic title.

I don't want a static name like "STREAM" but the stations name.

@ Falstaff
Just to let you know I found a way by creating a special TF field %titlemetadb% and created a column for it.

Code: [Select]
						// %titlemetadb%
if (fb.TitleFormat("%length%").EvalWithMetadb(this.metadb) == "?"){
titlemetadbname = fb.TitleFormat("%title%").EvalWithMetadb(this.metadb);
titlemetadbname = titlemetadbname.replace(/'/g, "''").replace(/,/g, "','").replace(/\//g, "'/'").replace(/\(/g, "'('").replace(/\)/g, "')'").replace(/\[/g, "'['").replace(/\]/g, "']'");
tf_prep = replaceAll(tf_prep, "%titlemetadb%", titlemetadbname);
};
else{
tf_prep = replaceAll(tf_prep, "%titlemetadb%","");
};


WSH Panel Mod script discussion/help

Reply #3776
@zeremy

why trying to code thing available with simple titleformat 


EDIT: my bad, forgot this bad example for the Stream 1st line



and TF for bitrate fixed is:
Code: [Select]
$if(%__bitrate_dynamic%, $if(%isplaying%,$select($add($mod(%_time_elapsed_seconds%,2),1),%__bitrate_dynamic%,%__bitrate_dynamic%)'K',$if($stricmp($left(%codec_profile%,3),'VBR'),%codec_profile%,%__bitrate%'K')),$if($stricmp($left(%codec_profile%,3),'VBR'),%codec_profile%,%__bitrate%'K'))

WSH Panel Mod script discussion/help

Reply #3777
First thanks to marc2003 for the WSH Panel Mod components I've been using for a while now. They add so much for a hard-core user of foobar like myself.

Second I've been experimenting with Falstaff's new playlist component. I have a digital collection that is 100% classical which poses it's own challenges in to regards my needs which is to make the best use of custom extensive metadata tags I use to catalogue my collection. For me just sorting recordings by album alone isn't a complete answer as there are multiple ways I need to filter metadata.

The screenshot below is what I've come up with initially after a lot of tinkering with Falstaff's excellent gadget. The wallpaper is an image of the composer.

So Falstaff, a big thanks to you as well.

WSH Panel Mod script discussion/help

Reply #3778
@Marcus Vinicus:

you're welcome, nice setup, and the fact you've manage to make it to fit your needs is great for me

WSH Panel Mod script discussion/help

Reply #3779
@Marcus Vinicus:

you're welcome, nice setup, and the fact you've manage to make it to fit your needs is great for me


Thanks,

I do wish there was three rows of groups instead of two, it would mean I could do things a bit differently re the performers! 

WSH Panel Mod script discussion/help

Reply #3780


WSH Panel Mod script discussion/help

Reply #3782
just a little reminder for anyone who uses my now playing or thumbs scripts to download artist images from last.fm - you can configure the main foobar preferences with the full path to the folder it uses so other components/scripts can make use of them. look at file>preferences>display>album art>artist tab. enter something like

Code: [Select]
c:\users\marc\appdata\roaming\foobar2000\wsh_data\%artist%\*.*
d:\portable apps\foobar2000\wsh_data\%artist%\*.*


when done, you can enable artist wallpaper in falstaff's JSplaylist and it just works. also, it can be used by other components such as EsPlaylist or foo_facets when you browse your library by artist:


WSH Panel Mod script discussion/help

Reply #3783
Did not know that marc2003, might be useful.

I am going to shamefully ask you one thing more even though I haven't done your tutorial yet 
Though this is more of a future request/idea than ask for help.

Maybe it would be good in your similar script to have the date of the albums in album mode show up in a paranthesis before or after the name? Like you did before with relevance for the tags... (I liked that as well)
But the date would be good for tagging, but also it would be helpful as albums released later naturally gets played more for a while.

Don't know if it's possible/how easy it would be to do.

WSH Panel Mod script discussion/help

Reply #3784
Like you did before with relevance for the tags... (I liked that as well)


eh? you must be using some mod because my script doesn't include that. also, you can't get the album date from last.fm. (edit: if i did the mod then i forgot )

you should check out my musicbrainz script for that kind of thing.

http://marc2003.x10host.com/musicbrainz

WSH Panel Mod script discussion/help

Reply #3785
just a little reminder for anyone who uses my now playing or thumbs scripts to download artist images from last.fm - you can configure the main foobar preferences with the full path to the folder it uses so other components/scripts can make use of them. look at file>preferences>display>album art>artist tab. enter something like

Code: [Select]
c:\users\marc\appdata\roaming\foobar2000\wsh_data\%artist%\*.*
d:\portable apps\foobar2000\wsh_data\%artist%\*.*


when done, you can enable artist wallpaper in falstaff's JSplaylist and it just works. also, it can be used by other components such as EsPlaylist or foo_facets when you browse your library by artist:


YOU ARE THE BEST!!!! 

WSH Panel Mod script discussion/help

Reply #3786
eh? you must be using some mod because my script doesn't include that. also, you can't get the album date from last.fm. (edit: if i did the mod then i forgot )

you should check out my musicbrainz script for that kind of thing.

http://marc2003.x10host.com/musicbrainz

Yeah it's possible someone else modded that into your script, didn't think about that. It probably used the first common.js, and it made a list with for example indie (99) pop (80) IIRC.

I'm aware of the musicbrainz script, it's nice, but I only have 1920x1080 and it's already a bit crammed... Thanks for the answer though

WSH Panel Mod script discussion/help

Reply #3787
but I only have 1920x1080


aw. poor you. 

i have most of my scripts in a single layout. i just use tabs with default UI or when using columns, i use the panel stack splitter component to show/hide panels when you click buttons. obviously the 2nd option is a lot more effort.

as an example here's my PSS layout, my artist "tab" lets me switch between 4 panels. the album "tab" has 3 panels and 2 others to show track properties and charts. that's 9 panels in a pretty small space.


WSH Panel Mod script discussion/help

Reply #3788
aw. poor you. sad.gif tongue.gif

i have most of my scripts in a single layout. i just use tabs with default UI or when using columns, i use the panel stack splitter component to show/hide panels when you click buttons. obviously the 2nd option is a lot more effort. tongue.gif

as an example here's my PSS layout, my artist "tab" lets me switch between 4 panels. the album "tab" has 3 panels and 2 others to show track properties and charts. that's 9 panels in a pretty small space.

Hehe 

I used to have tabs but removed them as I wanted to see all the info I'm interested in immediately when I alt/tab up fb2k and to just need one click most the time. Just what I prefer at the moment, although your picture looked nice, and made me think about it.

Although, even if I had tabs, I wouldn't get the functionality I wanted - to have an idea of what albums are really the most listened to/most praised of an artist and at the same time get an overview of their discography with release dates.

Nothing to do... Just a small idea I came up with but if it's not even possible there's nothing to do.

Might be a good practice for me to try to get the musicbrainz script nicely into the now playing script...

WSH Panel Mod script discussion/help

Reply #3789
just a little reminder for anyone who uses my now playing or thumbs scripts to download artist images from last.fm - you can configure the main foobar preferences with the full path to the folder it uses so other components/scripts can make use of them.


great tip Marc - is there a way to reference this using your old image path structure? (I'm still reluctant to run your script on my 8gb of artist images!)

On that update topic - I am trying to update some of my panels that use your old .js files. Did common8.js drop support for web buttons (youtube, google, etc buttons)?

Also, FYI - upgrading blog/news/reviews no longer seems to give results for news or reviews, but blogs still works.

WSH Panel Mod script discussion/help

Reply #3790
instead of wsh_data, the old image folder ends with \wsh_lastfm\$crc32(%artist%)\*.*

and you are right about web links being missing in the new samples. i was going to update them with some new images but i'll be honest - i forgot all about it.

news/reviews/blogs is still working for me.



WSH Panel Mod script discussion/help

Reply #3792
marc,

I ran into an error I hadn't seen previously with simple tag reader. I'm trying to replicate this info panel. Or at least the general feel of it. That one was unceremoniously stolen from CaTRoX because I like the clean layout and information it provides. However, I'm trying to get away from a conglomeration config and thought it would be nice to use yours as a base.

What I found out is TF strings can only be so long. I'd also rather not use Properties WSH because it creates an autoplaylist if you click on anything (I know how to disable that) and it doesn't fit well in the confined space on the right where I'd like it to reside. This is as far as I got before the TF error popped up. Is there an easy way to alter one of your configs (JS??) to more or less mimic the former? Basically - pick and choose what tidbits I want displayed.

WSH Panel Mod script discussion/help

Reply #3793
edit: if you saw the previous post, ignore that. i missed you mentioning simple tag reader.

the dialog box is limited to 255 characters because of windows script host limitations. really, it's only meant for display large chunks of text from a single field. i didn't really mean for it to be used for multiple lines of single tags. i think you'd better off using the bog standard item details panel as you're not doing anything that requires WSH panel mod.

if you really must, you can bypass the character limitation by holding shift and right click the panel>Properties. there you can directly edit the value 2k3.text_tag_tf

WSH Panel Mod script discussion/help

Reply #3794
Heh. It's always the simple things. Thanks. Forgot all about the included bits lol.

WSH Panel Mod script discussion/help

Reply #3795
Marc, thanks for your continued development of your WSH scripts.  I've been using them since you were on common3.js.  I had done some hack work on your scripts so I hadn't updated them since then, but I'd been getting more and more crashes so I thought it was time to check out your new ones.  You have done some nice work since then!

Anyhow, a couple of questions and requests:

1.  How do I get the panels to adhere to the DUI font standards?
2.  In your last.fm similar artists panel, is there a way for you to add a user configurable link in addition to the default last.fm artist page and autoplaylists?
3.  The one script I used that doesn't seem to have an equivalent is a web links one.  I know you have the small web links script that parses the musicbrainz artist page, but I added some specific ones to your old one that won't show up in MB.  Is there a way you can make your old one compatible?  I can send you a copy of it if you want to look at it.
4.  Is there a way to auto download last.fm artist art to a user defined folder?  I've been collecting artist art over years in an artist art folder and would like to keep using it.  For now I let your last.fm autodownloader download and then manually move to my folder.  It's not a big deal to have to continue to do that, but wanted to ask.

And one question for falstaff on your WSH playlist viewer.  First off, great work!  It pretty much does everything my ELPlaylist does, and allows me to move back to DUI.  I wanted to know if there is a way to configure row height for the script?  I'd like to make it shorter.  I tried poking around but wasn't able to easily identify it.  Also, I'd like to make some user defined custom fields narrower, but it looks like there is a limit to how narrow you can make them.  Is there a way you can change that?

Thanks in advance!

WSH Panel Mod script discussion/help

Reply #3796
in main script, search for this, and change default height for playlist row from 28 to ... what make you please, but take care, especially to the extra_line_h variable that might need to increase if you decrease the default_playlist_h & playlist_h value :

Code: [Select]
cRow = { // references of row height (zoom 100%)
    default_playlist_h: 28,
    playlist_h: 28,
    extra_line_h: 5,
    playlistManager_h: 28,
    headerBar_h: 26,
    settings_h: 30
};

 

WSH Panel Mod script discussion/help

Reply #3797
This is the ultimate in stupid question, but how do I get back in to edit the main script?  I thought in WSH panels you can right click and select configure at the bottom of the menu to get to the main panel, but that option doesn't appear for the playlist panel. Thanks again!

WSH Panel Mod script discussion/help

Reply #3798
This is the ultimate in stupid question, but how do I get back in to edit the main script?  I thought in WSH panels you can right click and select configure at the bottom of the menu to get to the main panel, but that option doesn't appear for the playlist panel. Thanks again!


as described in my DA page for JSPlaylist, in TIPS section:
...
[Tips]
* Hold SHIFT key + right click on a toolbar to display Configure script ans panel Properties entries
...

but on a toolbar or a non-item place

WSH Panel Mod script discussion/help

Reply #3799
@Sixth Street

1. it already does use the font name and colours from the default UI preferences.  there are choices for font size on the right click menu. note that the component does have a problem getting the name of some fonts so check the console and it will tell you on startup/font change if it fails and it will revert to using Segoe UI. nothing can be done about that unless someone takes over component development.

2. just tell me what it is and i'll add a button. i very recently posted some similar code for someone else so it should be easy to change it to what you need.

3. i keep meaning to add a new one but i haven't got around to it yet.

4. give me some idea how you store your images and i'll tell you what to change