SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

non programer needing help with rename folder from metadata

Hi all,

I’m not familiar at all with the language used for files and folder renaming filters, but I’m very obsessed with my music tags. I seek some help to manage multiple CDs albums …
I’d like subfolders to be created for an album, only if the album has multiple CDs.
For example,

If only one CD in the album, album folder should be:
Artist - Year - AlbumName

If 2 CDs in the album, album folders should be:
Artist - Year - AlbumName/CD1
Artist - Year - AlbumName/CD2

would be really glad if someone can help me with that since me and programming are enemies :wink:

Hi,this should work for you

Set rename mask (and perhaps compilation mask) in Preferences:File and Folder Correct:Rename SubFolder from Metadata as follows and run Action:File and Folder Correct:Correct SubFolder from Metadata

function ifnotempty(value,sep){
     return value.length > 0 ? value + sep : '';
 }
 
 function ifnotempty2(value1,value2,sep){
     return value1.length > 0 ? value1 + sep :value2.length > 0 ? value2 + sep:'' ;
 }
 
ifnotempty2(albumartist,artist,' - ')  
+ ifnotempty(year,' - ') 
+ ifnotempty(album,'') 
+ (disctotal>1 ? folderseparator + 'CD' + discno    : '')