SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Folder Renaming.

Hi,

I upgraded today and all my settings were lost. I see that will be fixed, however I can’t get my folder renaming correct even though it shows correctly in the example mask.

I want

AlbumArtist/Album (Year)/

I get

AlbumArtistAlbum (Year)/

This is what I have, copied from another thread after searching

    if (number == '') { return '';}
    var str = '' + number; 
    while (str.length < length) {  
       str = '0' + str;
    }
    return str;
 }
 
 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(album,' ')
 + '(' + (year.length>4 ? year.substring(0,4):year) +')' + '/'

I’ve read many threads now and tried different things but I can’t get it right.

Any help would be appreciated.

Thanks

Sorry, it is now fixed so please try the instructions at http://blog.jthink.net/2015/02/regressions-fixed-in-jaikoz-821.html to recover your preferences, i the meantime I will take a look at your rename mask

I think the problem is you are on Windows but your are specifying the OSX folder separator (/) instead of the Windows one (\). In fact you should use the folderseparator variable, and you don’t need the final folder separator either.

Replace the last line of your mask with

   ifnotempty2(albumartist,artist,folderseparator)
  + ifnotempty(album,' ')
  + '(' + (year.length>4 ? year.substring(0,4):year) +')' 

and it should work for you.

Brilliant, thanks for your help. All working again.