HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Wizard on 2006-04-11 07:37:19

Title: Playlist Name Enhanced
Post by: Wizard on 2006-04-11 07:37:19
Playlist Name Enhanced v1.2 (foo_playlist_name_enhanced)

Appends automatically playlist info ("items / length") to all playlist names.

Each time a playlist is modified, it checks if the playlist name matches "<name> [<info>]".
If it does, it replaces the <info> part with the new info.
If it doesn't, it appends " [<info>]".

NOTE: it only checks for left and right bracket, so be careful if you have "[<something_other_than_info>]" at the end...

v1.2
- "Edit -> Playlist Name Enhanced" menu item.

Download: http://pelit.koillismaa.fi/plugins/general.php#140 (http://pelit.koillismaa.fi/plugins/general.php#140)
Title: Playlist Name Enhanced
Post by: Fifoxtasy on 2006-04-11 09:39:10
quite useful, thank you
Title: Playlist Name Enhanced
Post by: xxiii on 2006-04-11 10:22:45
thanks, Wizard!

if you plan to make it more complex, I'd have two feature requests:

- exclude empty lists (currently it displays "[0:00]")

- exclude selected playlists (in my case "history" and "queue" which are used by the respective plugins)
Title: Playlist Name Enhanced
Post by: NEMO7538 on 2006-04-11 11:43:23
I thought this functionality was already offered in Colum UI playlist switcher panel, using  %size% and %length% in the playlist title.
Title: Playlist Name Enhanced
Post by: krazy on 2006-04-11 11:50:41
I thought this functionality was already offered in Colum UI playlist switcher panel, using  %size% and %length% in the playlist title.

Not available for tabs however.
Title: Playlist Name Enhanced
Post by: Stuart60611 on 2006-04-11 20:23:56
Great plugin.  It would also be very helpful if the plugin could also display total number of tracks in the playlist in addition to the playlist length.
Title: Playlist Name Enhanced
Post by: Seldaek on 2006-04-11 21:33:48
Well thank you, although I have no use for the plugin, this made me aware of the fact that you can use %length% in the playlist switcher panel
Title: Playlist Name Enhanced
Post by: lextune on 2006-04-11 21:40:42
Nevermind, I figured it out
Title: Playlist Name Enhanced
Post by: Wizard on 2006-04-12 17:04:30
v1.1 released, see first post.

@xxiii: I need to make a preferences page for an exclude list, but since I use Visual C++ 2005 Express Edition which doesn't have resource dialog editor, I can't do it right now, only when I get a copy of Visual Studio 2005...
Title: Playlist Name Enhanced
Post by: Stuart60611 on 2006-04-12 20:51:57
I really like the plugin, but there is one annoying problem.  For some odd reason, after the plugin adds the information in brackets it makes all the resulting tabs uniformly larger than they need to be with extra spaces before the playlist name and after the bracketed information.  I cannot make these tabs resize to a size as large as they need to be to hold all of the information which normally occurs whenever you create a playlist tab which is ordinarily only as large as it needs to be to display the text of the name of the playlist.
Title: Playlist Name Enhanced
Post by: Generalverdacht on 2006-04-12 21:33:20
nice!

my question: is something like this available for foobar 0.83?
Title: Playlist Name Enhanced
Post by: xxiii on 2006-04-12 22:24:57
@xxiii: I need to make a preferences page for an exclude list, but since I use Visual C++ 2005 Express Edition which doesn't have resource dialog editor, I can't do it right now, only when I get a copy of Visual Studio 2005...

the way the queue list works now in v1.1 (when empty it's just the name and when you queue tracks it updates with the infos) is pretty cool and I would not want to exclude it anymore.
Title: Playlist Name Enhanced
Post by: Wizard on 2006-04-13 06:15:14
I really like the plugin, but there is one annoying problem.  For some odd reason, after the plugin adds the information in brackets it makes all the resulting tabs uniformly larger than they need to be with extra spaces before the playlist name and after the bracketed information.  I cannot make these tabs resize to a size as large as they need to be to hold all of the information which normally occurs whenever you create a playlist tab which is ordinarily only as large as it needs to be to display the text of the name of the playlist.


I really don't know why this happens to you. What OS are you using? Does anyone else experience such a problem? Can you remove all plugins and use only mine to see if it happens again?
Title: Playlist Name Enhanced
Post by: Stuart60611 on 2006-04-13 06:20:04

I really like the plugin, but there is one annoying problem.  For some odd reason, after the plugin adds the information in brackets it makes all the resulting tabs uniformly larger than they need to be with extra spaces before the playlist name and after the bracketed information.  I cannot make these tabs resize to a size as large as they need to be to hold all of the information which normally occurs whenever you create a playlist tab which is ordinarily only as large as it needs to be to display the text of the name of the playlist.


I really don't know why this happens to you. What OS are you using? Does anyone else experience such a problem? Can you remove all plugins and use only mine to see if it happens again?



I think I figured out why it happens, but I have no solution.  I have a total of 6 playlist tabs which 5 of 6 can be fit on one line with the extra information added by your plugin so I have multiline tabs checked in playlist switcher settings.  As such, it appears that playlist switcher expands all the tabs to fill two complete lines making the tabs look weird with lots of extra spaces in the begining and end of the tab.  Not sure how to solve.
Title: Playlist Name Enhanced
Post by: Wizard on 2006-04-13 12:57:54
I think I figured out why it happens, but I have no solution.  I have a total of 6 playlist tabs which 5 of 6 can be fit on one line with the extra information added by your plugin so I have multiline tabs checked in playlist switcher settings.  As such, it appears that playlist switcher expands all the tabs to fill two complete lines making the tabs look weird with lots of extra spaces in the begining and end of the tab.  Not sure how to solve.


OK, I see... Maybe you should contact the author of playlist switcher?

@Generalverdacht: I've used functions that are not available for v0.8.3, sorry.
Title: Playlist Name Enhanced
Post by: LTourist on 2006-04-20 16:48:26
Simple plugin, but great and useful, Thanks a lot for the word you'done
Title: Playlist Name Enhanced
Post by: Stuart60611 on 2006-04-28 17:39:52
Will this plugin work with the new Columns UI beta?
Title: Playlist Name Enhanced
Post by: Wizard on 2006-04-28 20:06:43
Will this plugin work with the new Columns UI beta?


I have no reason to believe it won't. My plugin just renames the playlist, so it should show up in Columns UI.
Title: Playlist Name Enhanced
Post by: Generalverdacht on 2006-05-05 16:20:36
how do you guys add the length and filecount infos in your playlist switcher only? seen this before... and dont want to make my playlist tabs that ugly with this plugin...

some of you told to simply add %length% to the playlistname, but this doesnt work at all....
Title: Playlist Name Enhanced
Post by: Seldaek on 2006-05-06 09:34:33
You checked the box just over it yes? "Use titleformatting for playlist title in panel"
If you did that, having something like %title% '['%length%']' does work.
Title: Playlist Name Enhanced
Post by: rembetis on 2006-05-23 13:37:03
Would there be any way to pass this info (playlist length) to another program using a command line parameter? I use Xlobby as my frontend on my HTPC and foo_burninate as a handy way to burn playlists without leaving the frontend, by I need a way to calculate and display playlist length. Thansk in advance...
Title: Playlist Name Enhanced
Post by: Wizard on 2006-05-24 13:18:20
Would there be any way to pass this info (playlist length) to another program using a command line parameter? I use Xlobby as my frontend on my HTPC and foo_burninate as a handy way to burn playlists without leaving the frontend, by I need a way to calculate and display playlist length. Thansk in advance...


When I started making this plugin, I wanted to make just a custom titleformatting tag (like %playlist_length% or something...) that could just be updated when playlists were switched and that anyone could use that, but I couldn't find any help on this. If anyone knows of a way (or if it's even possible), please let me know 
Title: Playlist Name Enhanced
Post by: TrNSZ on 2006-05-24 13:42:48
[deleted]
Title: Playlist Name Enhanced
Post by: Wizard on 2006-05-24 17:30:52
I need to make a preferences page for an exclude list, but since I use Visual C++ 2005 Express Edition which doesn't have resource dialog editor, I can't do it right now, only when I get a copy of Visual Studio 2005...
Check out XN (http://www.wilsonc.demon.co.uk/d10resourceeditor.htm).


Thanks, but can I visually design the preferences page with this one or is it just an editor for .rc files?

And btw, how can I create a unique GUID? 
Title: Playlist Name Enhanced
Post by: TrNSZ on 2006-05-24 18:10:58
[deleted]
Title: Playlist Name Enhanced
Post by: Wizard on 2006-05-25 11:41:49
XN includes a graphical layout designer.


Thanks, I will give it a try 


To create a UUID, use UUIDGEN.  You should already have this, as it is included with the Microsoft Platform SDK.


I can't seem to find this...    Is it maybe part of Visual Studio 2005 and not of the SDK?
Title: Playlist Name Enhanced
Post by: TrNSZ on 2006-05-25 12:30:49
[deleted]
Title: Playlist Name Enhanced
Post by: Wizard on 2006-05-25 12:33:10
I can't seem to find this...    Is it maybe part of Visual Studio 2005 and not of the SDK?
I am positive it is not, because I do not own Visual Studio 2005. 

On my Windows 2000 machine which I use for these things, it's located in the Platform SDK "Bin" folder, which you might have in your PATH.  That is "\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\uuidgen.exe" here. 

This is the latest version of the PSDK for Windows 2000 and higher.  Maybe you need to update your development environment.


I seem to remember that I've installed only the core functionality of the SDK, maybe I need to install some other section too. I'll see what I can find, thanks!!! 
Title: Playlist Name Enhanced
Post by: Wizard on 2006-05-25 14:20:41
OK, i installed the "tools" section from the core sdk and i found uuidgen.

However, XN Resource Editor did not work for me very well (it crashed twice and i coundn't figure how to save as .rc files). I think i found a better one, ResEd (http://www.radasm.com/projects/projects.html).

I will see what I can do.
Title: Playlist Name Enhanced
Post by: Wizard on 2006-05-30 14:39:30
v1.2 is released (see first post).
Title: Playlist Name Enhanced
Post by: xliu5 on 2006-06-06 05:01:08
v1.1 released, see first post.

@xxiii: I need to make a preferences page for an exclude list, but since I use Visual C++ 2005 Express Edition which doesn't have resource dialog editor, I can't do it right now, only when I get a copy of Visual Studio 2005...


Still need this to be incorporated to be compatible with foo_browser and foo_uie_albumlist. Without excluding these two special playlists (*Browser* and Library view), it generates a new instance of these playlist instead of replacing/updating them.
Title: Playlist Name Enhanced
Post by: Cpt. Spandrel on 2006-06-08 16:35:52

v1.1 released, see first post.

@xxiii: I need to make a preferences page for an exclude list, but since I use Visual C++ 2005 Express Edition which doesn't have resource dialog editor, I can't do it right now, only when I get a copy of Visual Studio 2005...


Still need this to be incorporated to be compatible with foo_browser and foo_uie_albumlist. Without excluding these two special playlists (*Browser* and Library view), it generates a new instance of these playlist instead of replacing/updating them.


Same duplucation problem happens if you have an "always send to playlist" name selected. Just due to the fact that the component actually renames the playlists so they're not 'there' anymore for other components/functions to see?
Title: Playlist Name Enhanced
Post by: Sagara on 2006-11-16 10:31:30
Please, implement exclude list of playlists,
it's necessary for convient use of Browser and Album List components.
Title: Playlist Name Enhanced
Post by: fuffi on 2007-09-13 13:10:51
hello, useful plugin, i could like it ;-)

is it possible to say it should show information only for, lets say the "default" playlist?

i habe some playlists in row and i only need the information for playlists i'm currently listening (or used/created by foo_playlist_bind), not for playlists with i.e. radiostations in it.

also, the brackets make the shown information ugly. :-]
i'd like to define a "(" instead of "["

do you mind adding such features? or is this out of developing?

cheers

edit:
also, i found out, with showing information ON and deinstalling the plugin, by removing it and restarting foobar, the information is still shown in the playlist tabs. and no way to turn them off since uninstalling :-)
(i did not kept plugins settings as foobar asked me on restarting)
Title: Playlist Name Enhanced
Post by: Wizard on 2007-11-22 19:10:44
Well, it has certainly been a long time!
For the time being, I am no longer developing the plugin. Perhaps, I'll post the source code.
@fuffi: there's an option "Edit --> Playlist Name Enhanced --> Restore names", but if you uninstall it without first using this option, you have to manually rename the playlists and remove the brackets.
Title: Playlist Name Enhanced
Post by: gibson on 2007-12-08 23:25:23
I too would like to see a more customizable display. Changing what delimiters are used, changing what info is displayed, and so on...
Title: Playlist Name Enhanced
Post by: slowave on 2008-02-06 02:49:17
the brackets make the shown information ugly. :-]
i'd like to define a "(" instead of "["


I too would like to see a more customizable display. Changing what delimiters are used, changing what info is displayed, and so on...



You can play around with the information using formatting strings. I'm using this for my playlist-switcher panel, and it replaces the ['s with ('s:

$replace($replace(%title%,'[','('),']',')')
Title: Playlist Name Enhanced
Post by: nameczanin on 2009-06-06 09:14:27
Hi,
your component doesn't work anymore for me. I have Windows Seven (based on Vista) and foobar2000 0.9.6.7.

Quote
Failed to load DLL: foo_playlist_name_enhanced.dll
Reason: This component is not compatible with this version of Windows and needs to be recompiled with a newer version of the foobar2000 SDK; please contact the author of this component to obtain an updated version of this component.


And as it goes by http://www.foobar2000.org/?page=ReleaseNotes&version=096 (http://www.foobar2000.org/?page=ReleaseNotes&version=096)
Quote
To permanently address the “bad allocation” bug present in very old versions of the foobar2000 SDK (released before 2006-07-30), foobar2000 now refuses to load components built with affected SDK versions when running on Windows Vista. Affected components can be fixed by just recompiling them with an updated version of the foobar2000 SDK.


Could you just recompile it? I had similar thing with my foo_dock, so it looks like that method does really work (just rebuild). Thanks in advance!
Title: Playlist Name Enhanced
Post by: sgoct on 2010-01-13 22:39:17
Is there any chance this could happen? I'd really like to have this functionality in foobar 1.0.

Moderation: Removed unnecessary full quote of the preceding post.
Title: Playlist Name Enhanced
Post by: Udun on 2010-04-19 15:40:08
Is there any chance this could happen? I'd really like to have this functionality in foobar 1.0.
I second this
Title: Playlist Name Enhanced
Post by: rondertaker on 2010-07-06 20:55:31
are there any currently updated components that provide a simple functionality like this?  all i want to do is have my playlists tell me how long they are :)
Title: Playlist Name Enhanced
Post by: Dennis68 on 2010-07-06 21:04:02
If you're using the default interface, use layout editing mode to add the Playlist Manager to your layout. Right click on the column headers, and you can add the columns -- items, duration, and total size. This comes with Foobar... 
Title: Playlist Name Enhanced
Post by: rondertaker on 2010-07-06 22:21:58
thanks!
Title: Playlist Name Enhanced
Post by: Udun on 2010-12-20 18:12:51
If you're using the default interface, use layout editing mode to add the Playlist Manager to your layout. Right click on the column headers, and you can add the columns -- items, duration, and total size. This comes with Foobar... 

Chmm - need info on the playlist - not on an extra GUI component