Since I upgraded recently to version 11 of Jaikoz, I have had an issue with the Correct Subfolders from Metadata command/button. In the prior version of the product, when I used this, a new folder was created and the following masks were applied.
My original folder masks
Rename Mask Folder
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,folderseparator) + ifnotempty(album,folderseparator)
Compilation Mask Folder
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,folderseparator) + ifnotempty(album,folderseparator)
In the new version, I see nowhere to apply a similar mask. Now when I apply the command/button, no folders(s) are created and the files are all move to the parent of the current directory. Looking in the preferences section of the current version I see :
Looking at the details for the only selection I can select:
function pad(number, length) {
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,’ - ') + (disctotal > 1 ? pad(discno, 2) + pad(trackno, 2) + ’ - ': pad(trackno, 2) + ’ - ') + title + ‘/’ + ‘/’ + ‘/’ + ‘/’ + ‘/’ + ‘/’
How can I get Jaikoz to create the new folder and apply the masks I had before.