Post Reply 
Select for empty field in indexTags?
07-11-2020, 13:49
Post: #4
RE: Select for empty field in indexTags?
(03-11-2020 18:28)Airman Wrote:  But is there a way to do something like "CATEGORY=<none>:Non-Classical Library", so that it only selects files that lack that field?

Unless simoncn is going to modify the MinimServer syntax we've only ever been able to accomplish something like this by using the tagUpdate functionality.
My original post was actually about adding 'Studio Album' to files that didn't have a value for ALBUM_RELEASE_TYPE, but it's the same principal.

Create a tagUpdate file to add a virtual (only within the scope of MinimServer) tag containing the value 'Non-Classical' for every file in your collection.

In MinimServer 2 you could use something like:
Code:
@#AudioFormat=FLAC
.. add extra as necessary
+NON_CLASSICAL_CONSTANT=Non-Classical

In MinimServer 1 you might want to use '@DISCNUMBER=01, @DISCNUMBER=02' e.t.c.

Then add to itemTags: NON_CLASSICAL_CONSTANT


At this point you have two options:
  1. Use CATEGORY as a simple tagIndex where you'd select between the two values.

    add to tagValue: CATEGORY.default={NON_CLASSICAL_CONSTANT}
    change indexTag: 'CATEGORY=Classical:Classical Library' to just 'CATEGORY'

    This adds the value 'Non-Classical' (or whatever you've chosen in the tagUpdate file) to the tag CATEGORY where there isn't already a value.
  2. Specify multiple filters e.g. Classical Library and Non-Classical Library.
    Here there's a little more work as you can't specify CATEGORY twice in the tagIndex setting i.e. you can't have "CATEGORY=Classical:Classical Library, CATEGORY=Non-Classical:Non-Classical Library".

    add to tagValue: FULLCATEGORY.default={CATEGORY, NON_CLASSICAL_CONSTANT}
    This creates the new virtual tag FULLCATEGORY containing the values 'Classical' (from CATEGORY) and 'Non-Classical' (from NON_CLASSICAL_CONSTANT) where there isn't a value in CATEGORY.

    You can then add:
    indexTags: FULLCATEGORY=Non-Classical:Non-Classical Library

Hope this helps.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Select for empty field in indexTags? - simbun - 07-11-2020 13:49

Forum Jump:


User(s) browsing this thread: 1 Guest(s)