HOME | DD

Br3tt — JSPlaylist

#foobar2000 #jscript #panel #playlist #viewer #wsh #falstaff #br3tt
Published: 2015-01-26 22:00:22 +0000 UTC; Views: 114613; Favourites: 120; Downloads: 10964
Redirect to original
Description a new jscript for WSH PANEL MOD v1.5.6 or better

[Change Log]
 * 2015-01-26 at 23:00 (GMT+1) : 1.0.0 >> Initial release
 * ...
 * 2015-02-20 at 21:20 (GMT+1) : 1.2.8 >> auto-collpase engine fixed, validated with beta testing (thanx to du22y and marc2k3), and bugs fixed when sending tracks from a library panel (brought with v1.2.7) + CRTL+T to toggle columns toolbar + CTRL+I to toogle Information panel (topbar) + type what your search now binded with group by pattern (not only artist by default)
 * 2015-02-26 at 19:15 (GMT+1) : 1.3.0 >> now you can choose default groups status (collapsed/expanded) per group pattern + scroll touch control option added + many bugs fixed especially one that make crash panel on expanding groups in some case + now you can draw part of column text (TF) with different colors, $rgb(r,g,) function support added + misc changes and optimizations
 * 2015-02-27 at 17:30 (GMT+1) : 1.3.1 >> touch screen behaviour updated, now the track selection do not change while scrolling the list + font size increased in group headers
 * 2015-03-05 at 07:27 (GMT+1) : 1.3.2 >> drag'n drop enhanced, now when you drag tracks from the system to the current playlist (or to one in the playlist manager panel if it's opened) and you can insert the items where you want + added Crop action in selection contect menu + added 2 properties to set the alpha of selected track background and rectangle of the focused track + fixed a bug in Panel Settings when touch screen control activated + fixed a bug for default mode collapsed/expanded + misc. changes in playlist manager panel + minor bugs fixing
[/Change Log]

[Features]
 * Groups (collpase or expand, add extra lines, ...)
 * Custom Group By patterns with Playlist Filter feature like in ELPlaylist
 * Custom Panel Colors
 * Pseudo Smooth Scrolling
 * Arrange columns as you want, create custom columns with titleformatting and specific color
 * Playlist Header at Top (can be disabled)
 * Wallpaper as background supported (including a new blur effect)
 * Playlist Manager collapsable panel
 * Built in Settings Panel (still some minor parameter to edit in Properties of the panel)
 * Sort by clicking column header
 * Windows scaling compliant (dpi)
 * Playback statistics Engine (update file tags, now asynchronously on tracks ending)
 * ... and more!
[/Features]

[Requirements]
 * foobar2000 v1.1 or better >> www.foobar2000.org
 * WSH panel Mod v1.5.6 or better >> code.google.com/p/foo-wsh-pane…
 * Windows fonts : WingDings 1, 2 & 3
[/Requirements]

[Options]

 * Font guifx v2 transports >> blog.guifx.com/2009/04/02/guif…
[/Options]

[Installation]
 * disable "Safe Mode" option in WSH Panel Mod preferences (menu File>Preferences>Tools>WSH Panel Mod)
 * copy "wsh_br3tt" folder into your foobar2000 Profile folder (it only contains the jsplaylist subfolder)
 * import/paste the main JSPlaylist script into a WSH Panel Mod instance of your foobar2000 layout (DUI or CUI)
 * Important: for any Y major update of my scripts (where Y is 2nd number version => x.Y.z), replace the whole folder "wsh_br3tt\jsplaylist\" each time
   and Clear the WSH panel properties (hold SHIFT key + Right-click > Properties > "Clear" button > "OK" button)
[/Installation]

[Tips]
 * Hold SHIFT key + right click to display Configure script and panel Properties entries
 * Use Jscript9 engine (if supported by your system) for better performances (known issue: high %cpu on mouse move with older Windows 8.0 versions, in this case prefer Jscript engine)
 * Change colors and fonts in foobar2000 Preferences > DefaultUI or ColumsUI
 * Some minor settings can be changed in window Properties (right click on a playlist item > Settings...), use it carefully! main settings are now built in the panel with a graphic interface
 * Left click on a column header to sort the playlist on this field
 * Right click on the columns toolbar to edit Columns and Groups layout and features
 * Use Keyboard for searching artist in the playlist (incremental search feature like in ELPlaylist) or to navigate in playlist
 * Right Click on items for contextual menu for the selection
 * TAB key or Middle Click to toggle the Playlist Manager
 * CTRL+T to toggle the columns toolbar
 * CTRL+I to toggle the top Info panel
 * Hold CTRL + Mouse Wheel to scale elements (useful for 'retina' screens)
 * F2 key to rename active playlist in playlist manager panel
 * F5 key to refresh covers
 * Special fields handled in columns TF: %list_index%, %list_total%, %isplaying%
 * Special TF function to set specific color for the text that follows it: $rgb(r,g,b) with r,g,b as decimal values [0;255]
    do not use $rgb(,r,g,b) in a test condition compare but always for the result part (then or else):
    ==> this don't work: $if($rgb(0,0,0)%title%,%title%,,)
    ==> but this does: $if(%title%,$rgb(0,0,0)%title%,,)
 * Playlist Filter Group patterns: Set a group by pattern to a playlist thru Groups settings tab or by right clicking playlist manager item
 * ... etc
[/Tips]


feedback is always very welcome, too, so i count on you!

Cheers!

Br3tt
Related content
Comments: 407

Heiseikiseki In reply to ??? [2015-02-23 21:15:19 +0000 UTC]

Hi,Thanks for the wonderful Playlist.

I wonder to ask that is it possible to remove check-mark on showing the state column ?

And Could you make an album view (by a switch)?

👍: 0 ⏩: 1

Br3tt In reply to Heiseikiseki [2015-02-25 13:35:19 +0000 UTC]

the fact that is not a compiled component but just a script, allows every one to edit it to fit its needs, so, feel free to modifiy the script to remove the drawing character for selection mark.

👍: 0 ⏩: 1

Heiseikiseki In reply to Br3tt [2015-02-25 13:51:43 +0000 UTC]

I see. Thank you very much!

👍: 0 ⏩: 0

deviantart3370 In reply to ??? [2015-02-23 05:53:40 +0000 UTC]

There are many compilation albums from "Various Artists".
To the latest v1.2.8, I can't find any method to show the "Artist" of the individual songs within one compilation album.
I know that if I check "Show Row Extra-Lines info", or enable "Artist" column, I can see the artist names.
But, I think that the above methods show the somewhat needless information for the albums from one single "Artist".

So, could you implement the function to show the artist info for the songs only from "Various Artists" albums?

👍: 0 ⏩: 1

Br3tt In reply to deviantart3370 [2015-02-23 07:26:08 +0000 UTC]

all fields are customizable with Title Formatting, so you can already do that yourself !
test if %artist% is equal to %album artist% and if not, display %artist% otherwise nothing!

example for the TF of the extraline enter: $if($stricmp(%artist%,%album artist%), ,%artist%)

more information about title formatting here : wiki.hydrogenaud.io/index.php?…

👍: 0 ⏩: 1

deviantart3370 In reply to Br3tt [2015-02-23 08:31:21 +0000 UTC]

Wow.
It's too easy~!!! Thank you very much for your help.

Finally, I made it like this in the "Title" column  for the songs from compliation albums

Over The Rainbow ● Carol Kidd

with "$if2($if($stricmp(%album artist%,Various Artists),%title% ● %artist% ,%title%),%filename_ext%)"

Even though I'm already happy with this, is there any chance to change the color or font for "● Carol Kidd" to distinguish it from "Title"?

👍: 0 ⏩: 2

Br3tt In reply to deviantart3370 [2015-02-25 20:33:21 +0000 UTC]

"Even though I'm already happy with this, is there any chance to change the color or font for "● Carol Kidd" to distinguish it from "Title"?"

feature added, will be available in next public release soon. $rgb(r,g,b) fonction now supported as well in columns TF fields (normal TF line and Extra Line TF)
TF sample==> $rgb(40,40,50)%title%' ● '$rgb(60,60,80)%artist%

👍: 0 ⏩: 1

deviantart3370 In reply to Br3tt [2015-02-25 23:49:03 +0000 UTC]

Great News!

I'm waiting for the next release. 

👍: 0 ⏩: 0

Br3tt In reply to deviantart3370 [2015-02-23 12:27:59 +0000 UTC]

I still dunno... so maybe

👍: 0 ⏩: 0

samithaj [2015-02-21 17:20:31 +0000 UTC]

Can we edit the context menu items? Rather than having all items can we allow selected items to appear?? 

👍: 0 ⏩: 2

marc2k3 In reply to samithaj [2015-02-21 20:24:41 +0000 UTC]

file>preferences>display>context menu.

👍: 0 ⏩: 0

Br3tt In reply to samithaj [2015-02-21 17:27:50 +0000 UTC]

you can modth script to fit your needs, but default script will stay with the full context item menu.

👍: 0 ⏩: 1

samithaj In reply to Br3tt [2015-02-22 10:25:39 +0000 UTC]

can you please tell me where to edit? which file?

👍: 0 ⏩: 1

Br3tt In reply to samithaj [2015-02-22 10:39:53 +0000 UTC]

better way for you as marc2k3 answered : "file>preferences>display>context menu."

👍: 0 ⏩: 1

samithaj In reply to Br3tt [2015-02-22 11:10:16 +0000 UTC]

But it can't appear sub items only (like: Last.fm Artist Top Tracks), sub items disappears when main item unchecked.I want to have simple context menu only using this sub items, is it possible in WSH panel?

👍: 0 ⏩: 0

revo1973 In reply to ??? [2015-02-21 12:26:54 +0000 UTC]

JSplaylist looks good with my custom (separate) titlebar.

JSplaylist with custom titlebar

👍: 0 ⏩: 0

revo1973 In reply to ??? [2015-02-21 08:15:19 +0000 UTC]

Hi br3tt,
I've added a custom playlist name titleformat attribute to your wshplaylist.js in the special TF section. Could you add it to your config, then I don't have to add it everytime you update your script. It is very useful to me. I use it for a custom column and a WSH panel titlebar.

Here it is :
// %playlist_name%
tf_prep = replaceAll(tf_prep, "%playlist_name%", fb.GetPlaylistName(fb.ActivePlaylist));

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-21 09:02:54 +0000 UTC]

i think i will answer "no", because an important criteria : "performances". The more you add custom attributes, the more it take time to parse them for each row to display in the list, and adding a new one may be ok, be it will have an impact on perfs, so ...

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-21 09:44:09 +0000 UTC]

Ok, no problem. I'll just keep adding it myself.

👍: 0 ⏩: 0

Br3tt In reply to ??? [2015-02-20 20:23:13 +0000 UTC]

v1.2.8 released

👍: 0 ⏩: 0

RebelMax In reply to ??? [2015-02-20 19:53:54 +0000 UTC]

The script crashes with a 1-2 second delay every time I send something to a playlist from music library. 1.2.7. Did a clean update as instructed.

👍: 0 ⏩: 1

Br3tt In reply to RebelMax [2015-02-20 20:05:57 +0000 UTC]

problem reported today present in v1.2.7 only, thanx to try the latest v1.2.8 beta4 please, it must fix the issue *waits*

👍: 0 ⏩: 1

RebelMax In reply to Br3tt [2015-02-20 20:49:12 +0000 UTC]

Woks fine now. Thank you.

👍: 0 ⏩: 0

du22y In reply to ??? [2015-02-20 11:04:13 +0000 UTC]

It looks like the Auto Collapse bug again to ... but the new
sometimes crash...console report on line 2526 col 5 in main script...
tested on DUI CUI fresh install portable
video sta.sh/01kel25hqjvp

👍: 0 ⏩: 1

Br3tt In reply to du22y [2015-02-20 13:06:07 +0000 UTC]

ok, it seems i have to check all this engine part with auto_collapse. i may send you a beta of v1.2.8 for testing it if you agreed ?

👍: 0 ⏩: 1

du22y In reply to Br3tt [2015-02-20 13:13:56 +0000 UTC]

I agree!!!

always ready to help

👍: 0 ⏩: 1

Br3tt In reply to du22y [2015-02-20 14:49:31 +0000 UTC]

beta uploaded, i hope it's fixed, i've fixed too the way it scroll when you use UP and DOWN cursor keys, that was leaking in auto-collapse and normal mode (on all collapsed or all expanded)



*waits for feedback*
thank you

👍: 0 ⏩: 1

du22y In reply to Br3tt [2015-02-20 15:21:13 +0000 UTC]

just downloaded now, and will test it.

I will answer soon

👍: 0 ⏩: 1

Br3tt In reply to du22y [2015-02-20 15:30:54 +0000 UTC]

thanks

👍: 0 ⏩: 1

du22y In reply to Br3tt [2015-02-20 16:59:14 +0000 UTC]

you're welcome

ok, tested hard on DUI and CUI in different settings of playlist, it seems, everything is all right.

but there were some errors:

CTRL + T DUI & CUI crash Ln: 2382, Col: 29

and strange error one time crash on DUI Ln: 1863, Col: 25...may be this error because of me


video just report not all my hard test
video report sta.sh/02723qqvslvf

👍: 0 ⏩: 1

Br3tt In reply to du22y [2015-02-20 17:12:56 +0000 UTC]

ahahaha CTRL+T i have totally forgot that usage, it's for show.hide toolbar but never been updated. fixed now, thank you to point me on this CTRL+T replace ALT key previous versions.

for the  crash in line 1863, it's now fixed, get beta3 (will post it in 2 minutes !) please.

thanks a lot for the tests !

👍: 0 ⏩: 1

du22y In reply to Br3tt [2015-02-20 17:40:41 +0000 UTC]

you're welcome

beta3 in test...

👍: 0 ⏩: 0

Punkpkin In reply to ??? [2015-02-20 06:54:06 +0000 UTC]

Where do I configure what the "find as you type" feature searches for? Because I filter by artists and it searches for artists so it's redundant.

👍: 0 ⏩: 1

Br3tt In reply to Punkpkin [2015-02-20 10:53:06 +0000 UTC]

there is something to change there for sure, actually, it always search for %album artist% and %artist%, but it should match with the group by pattern. What is you need exactly, can you show me an example ?

👍: 0 ⏩: 1

Punkpkin In reply to Br3tt [2015-02-20 22:34:00 +0000 UTC]

Thanks for the update. I want to search for %title% and %album%, where do I put those?
edit: oh, okay, so I have to put it on the Title Format... hmm, but I want to keep filtering by %album artist%%album%%discnumber% while being able to search for %title% and %album%

👍: 0 ⏩: 1

Br3tt In reply to Punkpkin [2015-02-21 09:00:05 +0000 UTC]

type what you search is an helper to jump quickly to an artist (if groupby artist), a genre (if groupby genre), ... for other search, use CTRL+F

👍: 0 ⏩: 1

Punkpkin In reply to Br3tt [2015-02-21 23:31:08 +0000 UTC]

Oh, well, that works, although it's an ugly UI. I wish you could add a new field to specify what to search instead of merging it with group by, but I guess it's not possible.

👍: 0 ⏩: 0

revo1973 In reply to ??? [2015-02-19 07:55:03 +0000 UTC]

Br3tt, another feature which would be nice is to only show certain columns on certain playlists. Like in ColumnsUI.
Don't know if it's difficult to implement, but I thought I ask.

cheers r3ev

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-20 10:53:40 +0000 UTC]

heavy changes, that may come one day but not before v2.0

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-20 11:15:33 +0000 UTC]

Ok, it's a would be nice feature anyway.

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-20 13:06:17 +0000 UTC]

for sure.

👍: 0 ⏩: 0

revo1973 In reply to ??? [2015-02-18 15:31:00 +0000 UTC]

I have a request. When I make an custom column, I put some titleformatting in the first titleformat box.
And when I leave the sort box at 'null', i want to be able to sort by clicking on the header so the displayed values in the column are sorted alphabeticaly.
Can this be done?

cheers r3ev

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-18 19:54:21 +0000 UTC]

that make sense, if sort Order is unset ( = 'null') so column sorted on the TF field (if set of course!)
done in v1.2.7

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-18 21:49:57 +0000 UTC]

Thanks Br3tt

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-18 22:16:00 +0000 UTC]

don't forget to this deviation if you like it

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-18 22:35:56 +0000 UTC]

done

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-18 22:46:10 +0000 UTC]

thanks!

👍: 0 ⏩: 0

Master-Kosa In reply to ??? [2015-02-18 10:11:42 +0000 UTC]

Can I have another suggestion/request: I'd like to have permanent "show header toolbar" option that would override pressing "alt" key - I heavily use alt+tab and while it's minor inconvenience it's still annoying to always think 'where the hell is that header... wait I have to press alt'. Thank you. Otherwise everything works fine.

👍: 0 ⏩: 2

Br3tt In reply to Master-Kosa [2015-02-20 17:19:02 +0000 UTC]

added CTRL+T to toggle it in v1.2.8

👍: 0 ⏩: 0

Br3tt In reply to Master-Kosa [2015-02-18 14:44:09 +0000 UTC]

i agree, ALT key is not the better choice ... will see that soon.

👍: 0 ⏩: 1


<= Prev | | Next =>