HOME | DD

Br3tt — JSPlaylist

#foobar2000 #jscript #panel #playlist #viewer #wsh #falstaff #br3tt
Published: 2015-01-26 22:00:22 +0000 UTC; Views: 114690; Favourites: 120; Downloads: 10975
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

Master-Kosa In reply to ??? [2015-02-18 15:47:57 +0000 UTC]

Great. I think the easiest solution would be to remove the hotkey, IMHO this is not something that needs to be disabled/enabled on the fly. But if that hotkey is needed then binding "~" key (the one above TAB) would work better.

👍: 0 ⏩: 1

Punkpkin In reply to Master-Kosa [2015-02-18 20:31:05 +0000 UTC]

I think it removing the hotkey and changing the panel only from the settings would be better because you are never gonna find a key that nobody uses (I use ~).

👍: 0 ⏩: 1

Br3tt In reply to Punkpkin [2015-02-20 17:18:50 +0000 UTC]

added CTRL+T to toggle it in v1.2.8

👍: 0 ⏩: 2

Master-Kosa In reply to Br3tt [2015-02-21 00:02:21 +0000 UTC]

Nice.

👍: 0 ⏩: 0

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

That's alright I don't use CTRL+T hehe

👍: 0 ⏩: 0

pdanpdan In reply to ??? [2015-02-18 08:36:02 +0000 UTC]

Can you please make so that the New Column and New Pattern in Panel duplicate the currently selected column/pattern (except name)? So that one can easily create a customized version of an existing element. Thank you.

👍: 0 ⏩: 2

Br3tt In reply to pdanpdan [2015-02-18 14:44:35 +0000 UTC]

done in v1.2.6 just released

👍: 0 ⏩: 0

Br3tt In reply to pdanpdan [2015-02-18 10:25:17 +0000 UTC]

Ok will be done.

👍: 0 ⏩: 0

du22y In reply to ??? [2015-02-17 21:23:59 +0000 UTC]

tried 1.2.5 and the bug is still there "Enable Auto-Collapse" turn off this option and everything is fine.
video sta.sh/01kvngc0sfnp 
may be problem in my config?

👍: 0 ⏩: 2

Br3tt In reply to du22y [2015-02-18 07:59:00 +0000 UTC]

in the main script, in on_playback_new_track(), line 2444, put the bloc below in commentary, i think it will fix your problem:

    if(properties.autocollapse) {
        /*
        if(plman.PlayingPlaylist == p.list.playlist) {
            //plman.SetPlaylistFocusItemByHandle(p.list.playlist, metadb);
            var nowplaying = plman.GetPlayingItemLocation();
            p.list.focusedTrackId = plman.GetPlaylistFocusItemIndex(p.list.playlist);
            if(nowplaying.PlaylistItemIndex == p.list.focusedTrackId) {
                var grpId = p.list.getGroupIdfromTrackId(p.list.focusedTrackId);
                if(grpId >= 0) {
                    p.list.updateGroupStatus(grpId);
                    var center_focus_item = p.list.isFocusedItemVisible();
                    if(!center_focus_item) {
                        p.list.setItems(!center_focus_item);
                        p.scrollbar.setCursor(p.list.totalRowVisible, p.list.totalRows, p.list.offset);
                    };
                };
            };
        };
        */
    };

👍: 0 ⏩: 1

du22y In reply to Br3tt [2015-02-18 10:54:06 +0000 UTC]

tested on CUI and DUI no problems at all okay

👍: 0 ⏩: 1

Br3tt In reply to du22y [2015-02-18 13:59:00 +0000 UTC]

Ok thanks. found another bug with autocollapse feature when using rectangular selection and dragging down until bottom playlist reached => will be fixed too in v1.2.6

👍: 0 ⏩: 1

du22y In reply to Br3tt [2015-02-18 14:25:14 +0000 UTC]

ok,
I'm still testing it may be i find something else.
Thank you very much for your amazing work!
always ready to help

👍: 0 ⏩: 0

Br3tt In reply to du22y [2015-02-18 07:49:03 +0000 UTC]

what' i have fixed is the fact that when auto-collapse is on, even if "cursor follows playback" option is disabled, it followed the playback! i haven't undestand that your problem was different, now i got it, but i can't rerpoduce this jump to the top for now, so i have to clue. could you try my JSPlaylist in a fresh new foobar2000 with only just this panel (portable mod) and tell me if problem is still here ?

👍: 0 ⏩: 2

du22y In reply to Br3tt [2015-02-18 10:41:19 +0000 UTC]

tested on CUI and DUI same bug...   video sta.sh/0ax4n94xd0g

now check with blocking line 2444.

👍: 0 ⏩: 0

du22y In reply to Br3tt [2015-02-18 09:43:25 +0000 UTC]

Now I will try, I'm sorry for the delay, just came home from work

👍: 0 ⏩: 0

du22y In reply to ??? [2015-02-17 09:53:16 +0000 UTC]

Sometimes when you manually select tracks to play in a playlist and scroll mouse up or down it jump at the top of playlist.
(Columns UI, wsh panel mod 1.5.6)
sorry for my bad English

👍: 0 ⏩: 1

Br3tt In reply to du22y [2015-02-17 10:38:08 +0000 UTC]

possible if you are populating/updating your library (Preferences > Media Library) and if your playlist is an autoplaylist. When tracks added, the playlist refreshed and show the focused track, normal. You have to know that when you scroll (down or up), focused track do not change until you click on a track or a group header.
but in this case, it's normal

👍: 0 ⏩: 1

du22y In reply to Br3tt [2015-02-17 11:28:51 +0000 UTC]

I found why, because of "Enable Auto-Collapse" if to switch off that everything normally.
video sta.sh/02fg45n47rcf
if you want i can give the link to the config?

👍: 0 ⏩: 1

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

yep, well found, it's a bug; when autocollpase is ON, "even if "Cursor follows Playback" is OFF, on track change we jump to the new playing track, i'll try to fix it asap. Thanx for reporting du22y.

👍: 0 ⏩: 1

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

always ready to help

👍: 0 ⏩: 1

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

fixed, will be in the next release to come (1.2.5)

👍: 0 ⏩: 1

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

thank you very much


👍: 0 ⏩: 0

Pointro In reply to ??? [2015-02-17 01:30:18 +0000 UTC]

Would it be possible to have foobar2000's keyboard shortcuts be compatible with the skin? Or to have to ability to make custom shortcuts inside of the skin?

👍: 0 ⏩: 1

Br3tt In reply to Pointro [2015-02-17 07:21:06 +0000 UTC]

for what action ?

👍: 0 ⏩: 1

Pointro In reply to Br3tt [2015-02-17 14:07:09 +0000 UTC]

I made custom shortcuts to rate tracks in the playlist, and to move/organize + rename files. I also used middle click on playlist item to quicksearch for its album. These were (possible) ELplaylist functions.

👍: 0 ⏩: 1

Punkpkin In reply to Pointro [2015-02-18 00:01:06 +0000 UTC]

I don't know if it's what you're looking for, but for rating I use Quick Tagger to map Alt+Number to the song currently being played.

👍: 0 ⏩: 1

Pointro In reply to Punkpkin [2015-02-18 04:42:25 +0000 UTC]

No, that's not it. Global hotkeys work just fine, I even already have hotkeys to rate currently playing songs (which work) but one's requiring context (specifically "[context / playlist]") don't work with the Br3tt's JSPlaylist. I'd like that functionality with that's there with other playlists and splitters to be present.

I was able to use Alt+[Number] to rate songs that are not playing in a playlist, with ELplaylist and stuff for example.

👍: 0 ⏩: 1

Punkpkin In reply to Pointro [2015-02-18 06:10:29 +0000 UTC]

Oooh, I see, I don't use those... you'll have to wait for Br3tt to implement it then, sorry.

👍: 0 ⏩: 0

Punkpkin In reply to ??? [2015-02-16 06:52:58 +0000 UTC]

I figured how to implement the blurred wallpaper so it looks coherent with the rest of my theme and damn, thank you for adding that... truly great visual addition, looks super contemporary. It would be perfect if it weren't because most of the time it doesn't pick up the album cover and uses the standard purple thing instead. Is there some special format this panel uses? I have my library arranged with no embedded album art and most files called Cover.png

edit: I think I fixed it by using "$directory_path(%path%)\Cover.png" as path for default image, but then again it's weird because not all of them are in .png yet it seems to be fixed now... will try with more albums tomorrow.

👍: 0 ⏩: 1

Br3tt In reply to Punkpkin [2015-02-16 07:42:31 +0000 UTC]

path for front covers and artist image is to set in foobar20000 PReferences > Display ! the texbox for default wallpapaer path is "ONLY" for a default image when no image exists for the album cover or artist image (similar to the stub image field in Preferences > Display)
>> i.imgur.com/EHUBiMn.png

👍: 0 ⏩: 1

Punkpkin In reply to Br3tt [2015-02-16 18:27:16 +0000 UTC]

!! that explains it, I never set up that page as I never used it before. Thanks!

By the way, Japanese characters aren't being displayed on the tracklist, but they are on the header: i.imgur.com/p7Q6Uap.png

👍: 0 ⏩: 1

Br3tt In reply to Punkpkin [2015-02-16 18:35:57 +0000 UTC]

nothing relative with Japanses characters, this issue is because you have installed v1.2.x without cleaning the Properties as explained in the [Installation] chapter on this DeviantArt Page ! Clear the panel properties and all will be fine after (right click > Properties then use Clear button and then OK to close the properties window.
HTH

👍: 0 ⏩: 1

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

Thanks, I'll check on that.

👍: 0 ⏩: 0

seriousstas In reply to ??? [2015-02-15 17:20:55 +0000 UTC]

Please add support for touchscreen

👍: 0 ⏩: 1

Br3tt In reply to seriousstas [2015-02-15 18:33:26 +0000 UTC]

this feature is useless for me, so i won't be motivate for doing this request.
... and i don't think it's possible to do in the actual version of WSH Panel Mod.

👍: 0 ⏩: 0

seriousstas In reply to ??? [2015-02-15 17:19:02 +0000 UTC]

Отличный плейлист! Одно пожелание - сделать возможность прокрутки списка пальцем, тк использую тачскрин. На данный момент жест прокрутки выделяет треки ((

Google translate:

Excellent playlist! One wish - to make the ability to scroll the list with your finger, maybe using the touchscreen. At the moment, the scroll gesture highlights tracks ((

+1000
Поддержу это пожелание

👍: 0 ⏩: 0

NadirP In reply to ??? [2015-02-14 22:44:54 +0000 UTC]

You've really done a good job here

I think the only thing that I would like to add a horizontal scroll bar
to maintain a default width of columns, is not difficult to do for you  

👍: 0 ⏩: 1

Br3tt In reply to NadirP [2015-02-14 22:55:15 +0000 UTC]

sorry but there are two things I hate: spinach and horizontal scrollbar

👍: 0 ⏩: 0

Lexins In reply to ??? [2015-02-14 19:41:50 +0000 UTC]

Отличный плейлист! Одно пожелание - сделать возможность прокрутки списка пальцем, тк использую тачскрин. На данный момент жест прокрутки выделяет треки ((

Google translate:

Excellent playlist! One wish - to make the ability to scroll the list with your finger, maybe using the touchscreen. At the moment, the scroll gesture highlights tracks ((

👍: 0 ⏩: 0

Br3tt In reply to ??? [2015-02-14 09:28:49 +0000 UTC]

crash on adding a new track with v1.2.0: v1.2.1 fix the problem
for those that have encounter the crash after adding a new custom column and that don't want to use the 'Clear properties method' because of their customization just redone, then after having applied the new version, in panel window Properties, just update the property "SYTEM.HeaderBar.TotalColumns from 15 to 14, it will do a logical delete of the previously custom column and then you'll be able to create new ones after properly.
HTH

👍: 0 ⏩: 0

macarych In reply to ??? [2015-02-14 06:39:16 +0000 UTC]

It's cool!

👍: 0 ⏩: 1

Br3tt In reply to macarych [2015-02-14 08:25:09 +0000 UTC]

спасибо!

👍: 0 ⏩: 0

Br3tt In reply to ??? [2015-02-13 18:29:17 +0000 UTC]

v1.2.0 released, *waits for feedback*

👍: 0 ⏩: 1

samithaj In reply to Br3tt [2015-02-14 11:09:04 +0000 UTC]

Can you add a filter for when groups are disabled,so i can have simple playlist with separate covers when i have "mixed playlist" , and groups enabled for library view,artist view

👍: 0 ⏩: 1

Br3tt In reply to samithaj [2015-02-14 11:14:29 +0000 UTC]

not clear... but if you want a pattern with no group header ? easy ! do it yourself by adding a group attern where row height is 0 on expand and collapse state
and filter it to playlists you want.

👍: 0 ⏩: 1

samithaj In reply to Br3tt [2015-02-14 18:11:37 +0000 UTC]

That's great!! Is it possible to have separate column sets for each filtered playlist (If it's not too much trouble)   

👍: 0 ⏩: 1

Br3tt In reply to samithaj [2015-02-14 18:19:26 +0000 UTC]

that's a hard work to do that, maybe later (weeks, months, who knows..., i don't) but not planned at all for now.

👍: 0 ⏩: 1

samithaj In reply to Br3tt [2015-02-15 06:39:00 +0000 UTC]

Ok no worries, Keep up the good wok

👍: 0 ⏩: 0

jimbgreen In reply to ??? [2015-02-12 15:19:38 +0000 UTC]

Just when you think he won't be able to top himself, Br3tt does it yet again. At first glance, compared to his other classic skins, it seems kind of plain. Instead of a hindrance, the subtlety is the strength of this skin. So many little nuances will keep this skin fresh for a long time. For example, the first few times that I ran it, going through all of the options, I wondered why in the world there was an option for a blur effect of the album/artist wallpaper. Didn't make sense to me. Ah, but as you got through your playlists and the wallpaper changes, you see the subtle genius of this effect. The player takes on the muted colors of the album and look fantastic. You can't see any tangible image, yet you know exactly what album cover it is. Great effect. I won't spoil the rest, find out for yourself. If this is not your default skin afterwards, I don't know what to say. Thanks again, Br3tt, you ROCK (PS: props for using the greatest rock band of all time, AC/DC in a lot of your preview screens, just shows you have immaculate taste Attn: Foobar2000 developers: how in the world have you not gotten this guy on your payroll making some of his work default in Foobar2000.  You'd double your audience....

👍: 0 ⏩: 1


<= Prev | | Next =>