I can't put title at the beginning of the file name

picard
Tags: #<Tag:0x00007f2a03f19da0>

#1

I want only change the default rename script, placing the song title at the beginning of filename.

Default:

$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2)-,)$if(%_multiartist%,%artist% - ,)%title%

I try:

%title%$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2)-,)$if(%_multiartist%,%artist% - ,)

but don’t work.

I would appreciate your help.


#2

You’re putting the title at the beginning of the directory tree, not at the beginning on the file name. The file name starts after the last slash. So if you want to keep everything else the same and just put the title at the beginning of the file name, try this:

$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/,)%title% - $if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2)-,)$if(%_multiartist%,%artist%,)


#3

This work fine! Thank you!