SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Custom rename masks and functions in headless songkong.

I’ve just started using songkong headless, but I want to run my own renaming mask. How can I edit it?
I have tried adding it to songkong.properties in the base folder, but it doesn’t get loaded.
These are the lines I have added:

filenameMasks28=[CATALOG] RELEASETITLE [MEDIATYPE]/ARTIST - TRACKTITLE [CATALOG] \\:bracket(catalogno) + ' ' + ifnotempty(album,'') + ' ' + bracket(media) + '/' + ifnotempty(artist,' - ') + ifnotempty(title,' ') + bracket(catalogno)

javascriptFunctions7=function bracket(value){\\n   return value.length > 0 ? '[' + value + ']': '';\\n }

is this unsupported, or is there an error in my syntax?

I have used the same mask in Jaikoz with success.

Hi, I really must add edit/delete of rename masks to the remoteUI.

But this should work, I wonder if you have edited the wrong songkong.properties, i.e have you edited the file in the installation directory, the active one is in $HOME/songkong/.songkong folder.

I should verify that. I run it through ssh/cli and since I havent run an install script (at least not that I’m aware of), and start the server bij running ./songkongheadless.sh from the unpack folder.

No but most of the install/setup is within Songkong itself not a separate installer so even with the headless distribution after you untar it there will be a songkong.properties file in the unpack folder. But when you run SongKong for the first time it will copy that file into .songkong and then the copy that is modified when you change preferences within SongKong will then be the file that is always used.

Found it! Thanks. Consider my issue fixed.

Hello

I’ve just started using song kong headless, but I want to run my own renaming mask.

So for now you do this by modifying the songkong.properties file.

You can edit the rename mask in Remote mode since SongKong 5.8