hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

Ignore blacklisted tag(s) UNLESS some other tag(s) are present.

Open miscellaneous5572 opened this issue 1 year ago • 3 comments

I may just be mis-interpreting the way the blacklist/whitelist/advanced sections work when editing tag import options, but it doesn't seem like this functionality is working the way I would expect.

I would like to blacklist some tag, unless some other tag or tags are also applied to the image. I'll use a simple example:

Say I would like to ignore all images that contain the tag hair unless an image contains red_hair or tree tags. If I use the advanced tab in the import options blacklist filter and enter hair in the "exclude these" section, and then enter red_hair and tree in the "except for these" section, I would expect the query to ignore images that contain the hair tag, unless the image contains a red_hair or tree tag.

I threw in the tree tag to emphasize that it doesn't have to be a parent/sibling relationship.

I am not sure how blacklisting works exactly under the hood, e.g., if each tag in an incoming image is checked individually, or if all of the tags in the image are checked as a whole. Having the ability to specify a more complex boolean equation like with search, when entering a new blacklist item, e.g., not hair or red_hair or tree would be great.

miscellaneous5572 avatar Jan 10 '25 17:01 miscellaneous5572

If any tag is in the blacklist it gets discarded, if any tag is in the whitelist it passes. Whitelist overrules blacklist if memory serves.

Zweibach avatar Feb 24 '25 22:02 Zweibach

Can't you just do -hair OR red_hair OR tree?

y0shir avatar Nov 19 '25 17:11 y0shir

No.

Zweibach avatar Dec 28 '25 19:12 Zweibach