Hi People! This thread is really full of ideas, thanks!
Here's two questions:
1) Can I get the File size info from the file info box into the playlist? It's not called %__filesize% or %__file_size%, I tried that.
2) Using <tab> for the columns, is there any way I can specify widths for the columns? Someone earlier on mentioned using several <tab>s to make the columns wider, but there must be a better way?
Since everyone is sharing their playlist formats here, have a look at mine. Sorry, I can't make a screenshot. I use variable-width font (the default font).
My playlist shows artist on the left column, then album name and year in the middle, and tracknumber, title in the next column. On the right it shows the time, or when it's playing also sometimes the time remaining. If the track is classical (i.e. if genre=Classical) then it also makes a column for performance artist and year (which are two more tags). (So for classical files there are five columns, and for other music there are four columns, which looks a bit funny if you have them both in one playlist but i like it this way.) My background colour is almost black, and the highlight colour is dark grey.
EDIT: Sorry, the tabs didn't show. I'll put $char(9) where they are.
QUOTE
// colours
$puts(darkred,202070|2F8FFF)$puts(verydarkred,000070|2F8FFF)$puts(brightred,0000FF|2F8FFF)
$puts(yellow,00FFFF|2F8FFF)
$puts(lightblue,FFEE30|2F8FFF)$puts(paleblue,888830|2F8FFF)
$puts(greenish,208020|2F8FFF)
$puts(white,FFFFFF|2F8FFF)
// check if all standard tags are present
$if($and($and(%title%,$not($strcmp(%title%,))),$and(%artist%,$not($strcmp(%artist%,)))),
$puts(alltags,1),)
$if($get(alltags),
// formatting for files with tags:
// 'album' formatting
$puts(year,%date%)
$if(($strcmp($get(year),)),$puts(year,%year%))
$if($not($get(year)),$puts(year,'(year?)'),$puts(year,'('$get(year)')'))
$puts(album,$get(year)' '%album%[ - CD$num(%disc%,1)]
)
//if 'album artist' tag is present
$if(%album artist%,
// set 'artist' to VA for VA albums, and to 'album artist' otherwise:
$if($get(va),$puts(artist,VA),$puts(artist,%album artist%))
//if 'artist' is different from 'album artist', append the former to the title
$if($strcmp(%album artist%,%artist%),$puts(title,%title%),
$puts(title,%title% '//' %artist%)),
//no 'album artist' found
$puts(artist,%artist%)
$puts(title,%title%)
$puts(tracknum,[$num(%tracknumber%,$if($greater(%tracknumber%,9),2,1))])
$if($strcmp($get(tracknum),'0'),$puts(tracknum,),$puts(tracknum,$get(tracknum)' '))
)
// formatting for files without all the tags:
,
$if(%title%,
$puts(title,%title%)$if(%artist%,$puts(artist,%artist%)),
$puts(artist,%_path%)$puts(title,%_filename%))
$if($strcmp($get(artist),),$puts(artist,$get(white)$get(title))$puts(title,))
)
//$num(%_playlist_number%,$len(%_playlist_total%)).' '
$get(darkred)[$get(artist)]
$char(9)
$get(yellow)[$get(album)]
$char(9)
$get(verydarkred)[$get(tracknum)]
$puts(title,$replace(%title%,'(',$get(paleblue)'(',')',')'$get(lightblue)))
$get(lightblue)[$get(title)]
$char(9)
$if($strcmp(%genre%,'Classical'),$get(greenish)['('%performance_year%')' %performance_artist%$char(9)])
$if(%_isplaying%,$get(brightred)'> ')
$if(%_isplaying%,
// blink elapsed/total
$get(brightred)$if($greater($mod(%_time_elapsed_seconds%,10),5),%_time_remaining%,%_time_elapsed%)
,$get(white)[%_length%])
$if(%_isplaying%,$get(brightred)' <')
For the Status bar text I have this:
QUOTE
$puts(ext,$upper($if2($ext(%__referenced_file%),$ext(%_path%))))
$puts(codec,$if(%__codec%,$caps2(%__codec%),$get(ext)))
$if($strcmp($get(codec),),
$if($stricmp($left(%_path_raw%,7),'cdda://'),$puts(codec,CDDA),)
,)
$if($strcmp(%genre%,'Classical'),000070' '[%artist%' - '][%title%][' ('%album%')'],
000070' '[%artist%' - ']%title%)$char(9)
00FFFF
$get(codec)' '
[%__bitrate%kbps ]['('%__bitrate_dynamic%kbps')' ][%__samplerate%Hz]' '
$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,stereo,mono)),)
[ %__extrainfo%]$char(9)
005000$if2(%__replaygain_album_gain%,
000000
$if($greater($mod(%_time_elapsed_seconds%,2),0),,
'R?'))
' '
000000$if(%_time_total%,[%_time_elapsed%]'/'[%_time_total%],[%_time_elapsed%])
Have a nice day.