Help - Search - Members - Calendar
Full Version: Format string puzzle
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
kaiwei
Screenshot of what's wrong

Can anyone please help me? I'm damn puzzled as to why most of the playlist is displayed correctly while only a few entries are tilted right. HELP!!!

My format string is as follows
QUOTE
$if(%_isplaying%,aa0000,5B5B5B)$padcut($if(%artist%,%artist%,Unknown Artist),20) $padcut($if(%title%,%title% ,%filename%),30) $padcut(5B5B5B$if(%album%,%album%,%album%),30) 5B5B5B$num(%tracknumber%,2) $num(%__bitrate%,4) $if(%__replaygain_album_gain%,%__replaygain_album_gain%,%__replaygain_track_gain%)CTRLTAB%_length%
M
Well, I'm not where I can double-check it at the moment... but it looks like your "album" parameter is the culprit. I'm guessing it should be something like this, instead:
CODE
$if(%_isplaying%,aa0000,5B5B5B)$padcut($if(%artist%,%artist%,Unknown Artist),20) $padcut($if(%title%,%title% ,%filename%),30) $padcut(5B5B5B$if(%album%,%album%,Unknown Album),30) 5B5B5B$num(%tracknumber%,2) $num(%__bitrate%,4) $if(%__replaygain_album_gain%,%__replaygain_album_gain%,%__replaygain_track_gain%)CTRLTAB%_length%


In the screenshot, your albums are only taking up 22 characters, and I'm guessing the fact that you hadn't given an alternative if no %album% was present - and possible the extra characters you had before the $padcut length? - had something to do with this.

Of course, I could be on a completely wrong track. Like I said, I'm not where I can double-check at the moment. rolleyes.gif

- M.
_Shorty
see what happens if you take the colour control characters outside of the $padcuts
kaiwei
thanks shorty! that worked.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.