SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Renaming files to use Composer instead of AlbumArtist if Classical

I had a request from a customer that wanted to split his music collection into Classical and Non Classical, then within Classical put into Composer folders rather than the more usual Album Artist folder.

Now of course this can mean if you have Classical albums with tracks by multiple composers then the album will be split in your folder structure, but nevertheless some Classical users would prefer to store by the composer as they are more familiar with the composer than the main conductors/performers

This can be achieved by customizing an existing filename mask

  1. Go to Preferences

  2. Select IsClassical/HD/AlbumArtistorArtist/Album/DiscIfMultiDisc/Track - Title from dropdown and then Edit


3. Create new function by selecting Add next to Javascript functions, then entering the following

function ifClassicalUseComposer() 
{  
    return isclassical =='1' ? ifnotempty(composer,'/'):ifnotempty2(albumartist,artist,'/'); 
}

and then select OK

  1. Edit Mask (modify 3rd line) as follow

     addClassical() 
     + addHD() 
     + ifClassicalUseComposer() 
     + ifnotempty(album,'/') 
     + ifmultidisc('Disc ' 
     + ifnotempty(pad(discno,2),'/')) 
     + ifmultidisc(ifnotempty(pad(discno,2),' - ')) 
     + ifnotempty(pad(track,2),' - ') 
     + title
    

and then select OK

  1. Start Fix Songs

  2. Modify File Naming tab to use new mask for Rename mask and Compilation Mask

  1. Select Start

and that should do it