SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Tutorial 19: Is Classical and other Boolean Fields

Previous
Next

Most of us have a mixed Classical/Non Classical music library and sometimes its nice to be able to simply browse one category or the other. The way this is usually done is by using the genre field, but then this means that all our Classical music has to be given the same genre when what we probably want to do is categorize by subgenres within Classical.

SongKong music identification album categorizes albums as non-classical/classical and helpfully writes an Is_Classical boolean field to the files themselves so we can use this to split our albums into two groups for easier browsing.

A boolean value is simply a field that has only two values. So if we just add is_classical to indexTags we can then browse by two values.

e.g.
indexTags:is_classical

isclassicalzeroorone

But MinimServer provides a nice shortcut to go straight to a value by using the fieldName=MapValue:NewName syntax

e.g

indexTags:is_classical=1:IsClassical


So now when you click on IsClassical it takes you to the classical only albums. The only trouble with the approach is that there is no no way to go to only the non-classical albums.

But there is a way to do this as well. It is slightly convoluted you need to add another mapping to the zero value from a pseudo field which is then populated from the original field

e.g

indexTags: is_classical=1:IsClassical,is_classical_copy=0:IsNonClassical
tagValue:is_classical_copy.default={is_classical}

Now we can browse by both IsClassical and IsNonClassical easily.

isclassical_kinsky_browseboth

Previous
Next