SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

The never ending rename mask story (maybe sometimes i will understand, still trying)

Hi Again,

i want:
rename folderstructure from tags to:

U2/1980 - Boy

where U2 comes from Albumartist first, else from Artist, if Year is not emty

with compilations

Various/Album [CD1]

use CD (instead of Disc) if the mediatype is emty, use cd01 (with a leading 0) if the Disc Total is greater than 9)

rename filename from tags:

Artist - 01 - Title

where Artist comes from Albumartist first, else from Artist

and alternative:

Artist - Album - 01 - Title

rename filename from tags if compilation is true:

01 - Artist - Title

use Artist else Albumartist

hopefully i was precise enogh

…isnt it possible to build an interpreter that translates:
“Albumartist,Artist/Year - Album” to the f… “code”? [sorry im only dreaming]

can we “non-porgrammers” have a topic for “example code”
i have fond some here in the depth of the forum, but to understand what it does it often is needed to copy that example-code to prefs, cause in the forumposts often does not have the resulting, renamed structure shown.

i realy tried to understand that (idonteveneknowwhatitis) i was able to handle the “old” sysstem" but sorry the new is not my world, yet… me>50yrs from german,

and please feel free to tell me how i can donate your work…

just one more thing:
is it somehow possible to write a “1” instead of the word “true” in isCompilation: set value ?

 ifnotempty2(albumartist,artist,folderseparator) + ifnotempty(year,' - ')  + ifnotempty(album,folderseparator)

Compilations are not necessarily Various Artists, you can also have Single Artist compilations, so what do yo want to do ?

if(artist=albumartist)
{
    ifnotempty2(albumartist,artist,' - ') + ifnotempty(pad(trackno,2),' - ') + title
}
else
{
    ifnotempty2(albumartist,artist,' - ') + ifnotempty(album,' - ') + ifnotempty(pad(trackno,2),' - ') + title
}

    ifnotempty2(albumartist,artist,' - ') + ifnotempty(pad(trackno,2),' - ') + title

Possibly, but we did have a simpler naming criteria but it just wasnt flexible enough.

I will create a new Forum if others respond to favourably to your idea. The one good thing about the new system is that it is actually pure [b]Javascript[b/] so it should be easy for someone to phrase their question as a Javascript question and post it on a site like http://stackoverflow.com/ and get a quick answer.

Thankyou, you can use the button on this page to make additional donations http://www.jthink.net/jaudiotagger/donate.jsp

just one more thing:
is it somehow possible to write a “1” instead of the word “true” in isCompilation: set value ?[/quote]

I second the vote to have a forum of programming examples. I’m no programmer, and really need to spend too much time fumbling around.

What I really need to do is bring Jaikoz up to the level of SongKong, SongKong comes with a large number of predefined masks, plus Javascript functions are kept separate from the masks.

I suppose in the meantime you could use SongKong (trial) as a learning tool for creating masks in Jaikoz, there a reonly a couple of minor differences the most significant being that Jaikoz has a separate subfolder and filename mask, whereas it is combined in SongKong

I recently added a SongKong example to the blog showing how you can limit the path length that could easily be adapted for Jaikoz

and I think the blog is the place to add additonal examples.

That would be helpful for more examples, thank you.