SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

profile, messages, bookmarks and preferences Jaikoz rename masks

I’ve been using Jaikoz (and SongKong) for quite some time now and it keeps getting better. Today’s update is no exception.

I am having a mental block working out the masking though for renaming. At one point I had something I liked, but then I had to go and play with it and can’t seem to be able to go back.

What I desire for Folders:
Artist \ Album [File format] (orig release date)
E.G.
Black Sabbath \ Black Sabbath [HD] (Flac) (1976)

Thank you for the help.

Hi, try this.

ifnotempty2(albumartist,artist,'/')
+ album
+ isHd()
+ addBrackets(filename.substring(filename.lastIndexOf('.')))
+ addBrackets(originalalbumyear)
+ '/'
+ title

function isHd()
{
 return ishd==1 ? ' [HD]' : '';
}

function addBrackets(value)
{
 return value.length > 0 ? ' (' + value + ')' : '';
}

Filename mask comprises both subfolder and filename part and hence I added Title for the filename, but then you can run Action:File and Folder Correct:Correct SubFolder for Metadata to just modify the sub folder part.

Thank you It works well:
“+ addBrackets(filename.substring(filename.lastIndexOf(’.’)))”
This adds a . before the type .flac for example.
I tinkered with it but wasn’t able to clean it up.

You are correct, need the index of the value one after the dot

e.g filename.lastIndexOf('.') + 1

Full mask:

ifnotempty2(albumartist,artist,'/')
+ album
+ isHd()
+ addBrackets(filename.substring(filename.lastIndexOf('.') + 1))
+ addBrackets(originalalbumyear)
+ '/'
+ title

function isHd()
{
 return ishd==1 ? ' [HD]' : '';
}

function addBrackets(value)
{
 return value.length > 0 ? ' (' + value + ')' : '';
}
1 Like