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

WSH Panel Mod script discussion/help

Reply #4325
foobar goes unresponsive making it unusable. it's because it's a thin client pc with a single core VIA cpu @ 1000MHz and my music is on microSDXC card inside a sansa clip+ mp3 player which has really slow read/write speeds. EsPlaylist in library mode works fine on the same setup but i guess that's because it can run at a lower priority. we have no such control with WSH panel and it will use all the resources it can.


WSH Panel Mod script discussion/help

Reply #4326
foobar goes unresponsive making it unusable. it's because it's a thin client pc with a single core VIA cpu @ 1000MHz and my music is on microSDXC card inside a sansa clip+ mp3 player which has really slow read/write speeds. EsPlaylist in library mode works fine on the same setup but i guess that's because it can run at a lower priority. we have no such control with WSH panel and it will use all the resources it can.


normal with this kind of config ...  try on a true PC with a HDD

WSH Panel Mod script discussion/help

Reply #4327
Could it be made to use default stub image instead of the generated no art/image found it uses now?


WSH Panel Mod script discussion/help

Reply #4329
Sorry... I have about ten different portable installs for testing right now and, of course, I opened the one that wasn't set.


WSH Panel Mod script discussion/help

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


always interested in your work!

the WSH panel v.156+ is difficult to find and probably a reason for other errors people have posted.


Fantastic response time - I'm using FB over network with 14K+ albums and it works great! I'm guessing prefs will improve later after beta? It would be nice to change label font size and fields displayed.

One issue - the cover display does not seem to take Foobar preferences?
Many of my covers are displaying wrong (back or other images instead of cover.*)

Also not sure if WSH limitation - but if I select an album, it would be nice if other components (like your jsplaylist) follow selection? (and also vice versa - smooth browser can follow selection)

WSH Panel Mod script discussion/help

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


always interested in your work!

the WSH panel v.156+ is difficult to find and probably a reason for other errors people have posted.


Fantastic response time - I'm using FB over network with 14K+ albums and it works great! I'm guessing prefs will improve later after beta? It would be nice to change label font size and fields displayed.

One issue - the cover display does not seem to take Foobar preferences?
Many of my covers are displaying wrong (back or other images instead of cover.*)

Also not sure if WSH limitation - but if I select an album, it would be nice if other components (like your jsplaylist) follow selection?


covers are those set in foobar200 preferences, so it should work as all other foobar2000 panels that uses cover art. Check your settings and if you are sure there is a problem, report it here please, i'll check it

WSH Panel Mod script discussion/help

Reply #4333
report it here please, i'll check it


yes, I'm sure - notice SB versus your correct jsplaylist display:



also - different issue - any idea why that green "83" appears in your jsplaylist at the upper right corner?

 

WSH Panel Mod script discussion/help

Reply #4334
@mjm716

ok, i think i know why front cover is bad in some case. it's due to the cache engine and because you have multiple images in the album folder (right ?), and the script look for front.* or cover.* pattern name only ...
if not found, it take the first image found in the folder (*.*)

if your front cover is named differently than front.* or cover.*, seek for this line in the script:

var cover_img = "*front*.*-*cover*.*-*.*".split("-");

and change the pattern according to yours, for example, if your front covers are named "folder.jpg", remplace the line with:

var cover_img = "*folder*.*-*cover*.*-*.*".split("-");

HTH

WSH Panel Mod script discussion/help

Reply #4335
@Falstaff

Is the follow playlist option working as intended? It's doing some really weird things like not selecting items in the playlist and a double click on anything seems to trigger the first item it encounters. No matter what. I placed it in a tab and Facets in another. Facets, in Playlist mode, does pretty much what I'd expect it to. Not sure if this is what you intended or not. Some clarification please.

WSH Panel Mod script discussion/help

Reply #4336
ok, i think i know why front cover is bad in some case



thanks - all my front covers are cover.*

I changed it to: var cover_img = "cover.*"

and deleted the cache.

Looking forward to future versions - great work!


PS: also updated by jsplaylist script to 1.32 and the green "83" disappeared.

WSH Panel Mod script discussion/help

Reply #4337
@Falstaff

Is the follow playlist option working as intended? It's doing some really weird things like not selecting items in the playlist and a double click on anything seems to trigger the first item it encounters. No matter what. I placed it in a tab and Facets in another. Facets, in Playlist mode, does pretty much what I'd expect it to. Not sure if this is what you intended or not. Some clarification please.


if you're talking about JSSBrowser, this panel do not follow anything. a double click on an item send its content to Library selection playlist and play the 1st track of this item. a single click just send the content to the playlist (not that CTRL key allow you to Add the item contents (tracks) to the Library selection playlist, without clearing it.

i hope that explain you things. if you encounter another behaviour, please, tell me, it's maybe a bug. Thanx

WSH Panel Mod script discussion/help

Reply #4338
Updating from 1.5.6 to 1.5.10 - every panel says 'crashed' and this popup appears:

WSH Panel Mod (Damask Art Panel): Microsoft JScript runtime error:
Object doesn't support this property or method
File: <main>
Line: 2006, Col: 14
<source text only available at compile time>

Is there a fix?


WSH Panel Mod script discussion/help

Reply #4340
@Falstaff, since i saw someone on your DA page not having the right component version, here's a way you can detect if it has the required features...

Code: [Select]
if (!("GetLibraryItems" in fb))
    fb.ShowPopupMessage("This script requires WSH panel mod v1.5.9 or higher.\n\nhttps://www.hydrogenaud.io/forums/index.php?showtopic=108811");


WSH Panel Mod script discussion/help

Reply #4342
if you mean that code snippet then yes.

if you mean have i tested your script on a proper pc? no. i won't have my own pc running until wednesday.


WSH Panel Mod script discussion/help

Reply #4344
if you're talking about JSSBrowser, this panel do not follow anything. [...]


So...are there plans for it to follow whatever playlist is active? I'm curious why it would be an option otherwise.

WSH Panel Mod script discussion/help

Reply #4345
if you're talking about JSSBrowser, this panel do not follow anything. [...]


So...are there plans for it to follow whatever playlist is active? I'm curious why it would be an option otherwise.


as said, this is an earlier beta, all features aren't implemented yet, so, it could be added later, i can't tell yet. for now it is a library browser, simple, nothing more

WSH Panel Mod script discussion/help

Reply #4346
I have this in Tag ''Similar'' in mp3:

''Howard Hewett,Keith Washington,Jeffrey Osborne,Miki Howard,Freddie Jackson,Gerald Levert,Lalah Hathaway,Phil Perry,Chanté Moore,Anita Baker,Eric Benét,Atlantic Starr,Mint Condition,Johnny Gill,Regina Belle,Stephanie Mills,Kem,Karyn White,Angela Winbush,L.T.D.,LeVert,Kindred The Family Soul,Frank Mccomb,Rachelle Ferrell,Najee,Boney James,The Whispers,Peabo Bryson,After 7,Carl Thomas,Gerald Albright,Patti LaBelle,Troop,Al B. Sure!,Kenny Lattimore,Patti Austin,George Howard,Tevin Campbell,Rahsaan Patterson,Norman Brown,Jaheim,Jonathan Butler,Dave Hollister,Kirk Whalum,Teena Marie,Pieces Of A Dream,Silk,Hil St. Soul,Walter Beasley,Ledisi ''

How can i add all files from ''Similar'' in Autoplaylist:

I try this:

fb.CreateAutoPlaylist(fb.PlaylistCount, "Tag", "%artist% HAS " + similar.split('/'));

But this adds only one random artist, i need to add all artists from Tag.

WSH Panel Mod script discussion/help

Reply #4347
since listenbrainz updated their site to https, my previous script no longer works. an updated version is available here

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

it's now part of my main package of scripts and has a button/menu instead of settings inside the script.

WSH Panel Mod script discussion/help

Reply #4348
@mire777, try something like...

Code: [Select]
var similar = "Howard Hewett,Keith Washington,Jeffrey Osborne,Miki Howard,Freddie Jackson,Gerald Levert,Lalah Hathaway,Phil Perry,Chanté Moore,Anita Baker,Eric Benét,Atlantic Starr,Mint Condition,Johnny Gill,Regina Belle,Stephanie Mills,Kem,Karyn White,Angela Winbush,L.T.D.,LeVert,Kindred The Family Soul,Frank Mccomb,Rachelle Ferrell,Najee,Boney James,The Whispers,Peabo Bryson,After 7,Carl Thomas,Gerald Albright,Patti LaBelle,Troop,Al B. Sure!,Kenny Lattimore,Patti Austin,George Howard,Tevin Campbell,Rahsaan Patterson,Norman Brown,Jaheim,Jonathan Butler,Dave Hollister,Kirk Whalum,Teena Marie,Pieces Of A Dream,Silk,Hil St. Soul,Walter Beasley,Ledisi";
var arr = similar.split(",");
var query = "";
for (var i = 0; i < arr.length; i++) {
    query += "artist HAS " + arr[i];
    if (i < arr.length - 1)
        query += " OR ";
}


i've not tested fb.CreateAutoPlaylist to see how long the query strings can be.

WSH Panel Mod script discussion/help

Reply #4349
@mire777, try something like...

i've not tested fb.CreateAutoPlaylist to see how long the query strings can be.



Thanks, it works

Code: [Select]
var arr = similar.split("/");
var query = "";
for (var i = 0; i < arr.length; i++) {
    query += "artist HAS " + arr[i];
    if (i < arr.length - 1)
        query += " OR ";
}

function del()
{
fb.ActivePlaylist = (GetPlaylistID("Genre"));    
var PL_NM = (GetPlaylistID("Genre"));
if (fb.ActivePlaylist == PL_NM) { fb.RemovePlaylist(PL_NM)}
}

del();

fb.CreateAutoPlaylist(fb.PlaylistCount, "Genre", query);
                set_focus();
                fb.Play();