HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Valaire on 2013-01-24 04:05:44

Title: Is there a variable for playlist name?
Post by: Valaire on 2013-01-24 04:05:44
I'm trying to format a column to display different things for each song depending on the playlist it is in. 

Code: [Select]
$ifgreater($strstr(%playlist_name%,Rating),0,%artist%,)


Is there a variable for playlist_name?  I've seen some references to it by Google but I cant get it to work.  I basically want to set my artist column so that it doesn't display except on certain playlists.

Thanks.
Title: Is there a variable for playlist name?
Post by: BenB on 2013-01-24 05:59:22
%_playlist_name% works in Columns UI but doesn't work in the Default UI. It seems as though access to the playlist name via title formatting in the DUI was removed at some point in the past for reasons unknown to me.
Title: Is there a variable for playlist name?
Post by: Valaire on 2013-01-24 17:59:25
Hmm, well that sucks, guess I can't do what I wanted to do.  Using DUI.  Figured it was something basic.  I have a bunch of playlists, and wanted the ones I have setup to show albumart and grouped in EsPlaylist to NOT show the artist column because its redundant, and then for other playlists where I have a collection of highly rated singles, I wanted to show the artist column.
Title: Is there a variable for playlist name?
Post by: q-stankovic on 2013-01-25 20:09:37
It seems as though access to the playlist name via title formatting in the DUI was removed at some point in the past for reasons unknown to me.

As far as i remember this variable was never present in Dui but was provided by foo_cwb (wich is incompatible for a very long time with foobar2000)
Title: Is there a variable for playlist name?
Post by: BenB on 2013-01-26 01:05:31
If either this page (http://www.tinkafoo.com/log/foobar/titleformat_help.html) or this page (http://chronial.de/misc/foobar_titleformat/titleformat_help_new.html) is any reliable indication that the variable was once present, I'm inclined to believe that it was previously available in earlier foobar versions or it wouldn't have been included in either page. Both pages are clearly marked as being title formatting references with no mention of additional components being needed for using the title formatting listed therein.

Furthermore, upon researching the component you mentioned, I've thus far found no mention of %_playlist_name% as ever being one of the variables provided by that component.

Title: Is there a variable for playlist name?
Post by: Andreasvb on 2013-01-26 01:22:04
Furthermore, upon researching the component you mentioned, I've thus far found no mention of %_playlist_name% as ever being one of the variables provided by that component.

Not the same string, but this is what it was called, not that it matters much today:
Quote
%cwb_activelist% - active playlist name
%cwb_playinglist% - playing playlist name