SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Script to ammend rename mask

I would like my disc # folders to contain the disc # plus the disc subtitle if it exists:

eg:

1
2

to

1 Club
2 After Hours

I don’t know Javascript so I don’t know how to get the space between discno and discsubtitle if discsubtitle exists. Any help would be appreciated. the closest I can come is:

ifnotempty(albumartist,folderseparator) + ifnotempty(album,folderseparator) + (disctotal>1 ? discno + ’ ’ + discsubtitle + folderseparator : ‘’)

This leaves a space behind all disc numbers that do not have a discsubtitle and I have to remember to clear it or it messes up the renaming and saving.