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

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.

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%,)

1 Like

This work fine! Thank you!