[SOLVED] File Rename - Folder including the Album Release Year

Good evening !
How could i code the Filename option to have the year that the album was released ?
For example :

[2020] album name/1 05 song_name.mp3

where :
“[2020] album name” is the folder with the release year,
“1 05 song_name.mp3” is the CD number, track number, track name and song extension.
by the way, i’m using Linux Mint.

Try the following as your naming script:

[$left($if2(%date%,%originalyear%,----),4)] %album%/%discnumber% $num(%tracknumber%,2) %title%

Thanks a lot rdsift !

Just a comment… I spent last hour trying to understand this… i think there is “,4” missing in your code…

[$left($if2(%date%,%originalyear%,----),4)] %album%/%discnumber% $num(%tracknumber%,2) %title%

anyway… i’m adding the Artist prior to the album…code is like this now :
/%albumartist%/[$left($if2(%date%,%originalyear%,----),4)] %album%/%discnumber% $num(%tracknumber%,2) - %title%

by the way what the “----” means ?


Right you are. Sorry about that.

Just a default to put between the square brackets in case both %date% and %originalyear% are blank. Shouldn’t be needed, but I usually include a default value just in case.


Thanks a lot rdswift !