SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Missing ( and) in YEAR mask and more

Hi!

Im new to SongKong! I got my tagging mask almost perfect. I cant get right is to put ( and) in the YEAR tag. Could someone help me with this?
+ ifnotempty2(substring(originalyear,4),‘unknownyear’,’ - ')

The complete mask is:
ifnotempty2(albumartistsort.substring(0,1),artist.substring(0,1),’/’)
+ ifnotempty2(albumartistsort,artist,’/’)
+ ifnotempty(mbreleasetype,’/’)
+ ifnotempty2(substring(originalyear,4),‘unknownyear’,’ - ')
+ ifnotempty(album,’ - ')
+ ifnotempty(discsubtitle,’ - ')
+ ifnotempty(recordlabel,’/’)
+ ifnotempty(pad(discno,2),’-’)
+ ifnotempty(pad(track,2),’ - ')
+ ifnotempty2(albumartistsort,artist,’ - ')
+ title

And if SongKong cant find any discsubtitle or recordlabel i want to make an new folder after Album tag.

Hi, you need to add a new Javascript User Defined function

 function bracketValue(value1){
     return value1.length > 0 ? '(' + value1 + ')' :'' ;
 }

then use as follows:

ifnotempty2(bracketValue(substring(originalyear,4)),'unknownyear',' - ')

And if SongKong cant find any discsubtitle or recordlabel i want to make an new folder after Album tag.

Sorry I dont quite understand what you want, can you give example filename to demonstrate both cases.