Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: I need help with playlist formatting! (Read 2275 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

I need help with playlist formatting!

i am currently using the playlist formatting (hopefully this will show up ok):
-------------------
$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

$num(%_playlist_number%,$len(%_playlist_total%)).    [%artist%  -  ]

$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

$if(%title%,%title%   

$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

'['[%album%[ #[%disc%/]$num(%tracknumber%,2)]]']',%_filename_ext%)[   

$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

%_length%]
--------------------

what i want to do is change it so rather than:
123.    artist  -  track                      [album #1]  1:23
it would be:
123.    artist  -  1  -  track                    [album]  1:23


i'm having trouble, though. i can get it to sort of work, but then album song # appears to be "00" if its not in the id3 info.

any help would be appreciated, thanks

I need help with playlist formatting!

Reply #1
Try this


$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

$num(%_playlist_number%,$len(%_playlist_total%)). [%artist% - ]

$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

[$num(%tracknumber%,1) - ]

$if(%title%,%title%

$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

'['[%album%[ [%disc%/]]]']',%_filename_ext%)[

$if(%_isplaying%,FFFFFF|FFFFFF,C0C0C0|CFCFCF)

%_length%]

I need help with playlist formatting!

Reply #2
thanks!

 

I need help with playlist formatting!

Reply #3
No problem. And in case you didn't notice, the thing you must have been doing wrong was that you didn't put brackets around the %tracknumber%. Another solution would have been $if2($num(%tracknumber%,1),) but I think [$num(%tracknumber%,1)] is more elegant