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: Diskwriter output format (Read 2996 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Diskwriter output format

I guess this is my first post here and I did a search with no results so please be kind... 

OK,

What diskwriter formatting string for filenames should I use to make this pattern:

Code: [Select]
Artist\Album\Disc X\Tracknumber - Title


Right now I'm using:

Code: [Select]
%artist%\%album%\$num(%tracknumber%,2) - %title%


which woks fine for single disc albums, but I can't make it work when there is more than one disc.

I'm using the %disc% tag to specify the disc number.

Also, the format should be the same for single and multi disc albums, being:

Code: [Select]
Artist\Album\Disc X\Tracknumber - Title

for albums with several discs

and

Code: [Select]
Artist\Album\Tracknumber - Title

for single disc albums.

Thanks!

Diskwriter output format

Reply #1
Code: [Select]
%artist%\%album%\$if(%disc%,Disc %disc%'\',)\$num(%tracknumber%,2) - %title%


Or something to that effect.

Diskwriter output format

Reply #2
Wow.. That was fast!

I've tried that already, but it doesn't work...

Here's the result:

Code: [Select]
F:\MP3\Keith Jarrett\Always Let Me Go\[SYNTAX ERROR IN FORMATTING STRING]\[SYNTAX ERROR IN FORMATTING STRING]\01 - Hearts in space.mp3

Diskwriter output format

Reply #3
Code: [Select]
%artist%\%album%\[Disc %disc%]\$num(%tracknumber%,2) - %title%

A little shorter and should work both on foobar2000 0.8.3 and 0.9 beta.

Edit: Even avoids the formatting error.

Diskwriter output format

Reply #4
Quote
Code: [Select]
%artist%\%album%\[Disc %disc%]\$num(%tracknumber%,2) - %title%

A little shorter and should work both on foobar2000 0.8.3 and 0.9 beta.

Edit: Even avoids the formatting error.
[a href="index.php?act=findpost&pid=328238"][{POST_SNAPBACK}][/a]



Now it works!!

It was the '\' inside the condition..

Thank you guys

Diskwriter output format

Reply #5
darn you foosion

I was gonna do basically exactly what you did, but I didn't know how it'd react to a // if there was no %disc%