SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

trying really hard to use this new renaming javascript

what i’m trying to do is create multidisk subfolders, like CD01, CD02 under the album, instead of it creating to main directories for an album.

so, i have most of it working, except for that.

this format

Artist
(year) album
CD01
CD02

what i have is this, simply doesn’t work

ifnotempty2(albumartist,artist,folderseparator) + ifnotempty(’(’+year+’) ',album,folderseparator) + (disctotal>1 ? folderseparator + (‘CD’ + (pad(discno,2)))+ folderseparator : ‘’)

Ah, the problem is that pad is not a standard function but one that I defined in SongKong but not Jaikoz yet.

Add the following just before your mask

function pad(number, length) {
   if (number == '') { return '';}
   var str = '' + number; 
   while (str.length < length) {  
      str = '0' + str;
   }
   return str;
}