Sorry for the delay in replaying Ive just been very busy with the new SongKong release. Okay this is what you need for the subfolder rename mask
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,' ')
+ '(' + (year.length>4 ? year.substring(0,4):year) +')' + '/'
The Compilation Sub Folder Rename mask is
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,"Various Artists",'/')
+ ifnotempty(album,' ')
+ '(' + (year.length>4 ? year.substring(0,4):year) +')/'
and in both cases this is what you need for the Filename mask
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 : '';
}
ifnotempty(pad(trackno,2),' - ')
+ title
As you can see SongKong is easier because you can share existing javascript functions.