Is your feature request related to a problem? Please describe
I cannot find a way to whitelist a tag, meaning if Grabber tries to download an image even if it has a blacklisted tag, if the image has a whitelisted tag it will be downloaded regardless. As an example, in general I want to avoid downloading 3d images so I have put the tags 3d, 3dcg, 3d_(artwork), etc. into Grabber's blacklist. However, there are a number of 3d artists I like that I do want to download regardless of the images having the 3d tag.
Describe the solution you'd like
A whitelist, similarly configurable to the current blacklist option. If a image has a tag on the whitelist it will ignore the blacklist.
Describe alternatives you've considered
It is possible for me to create a separate row for each whitelisted tag in the Downloads tab if I set Get blacklisted to true in order to ignore the blacklist for these tags. However, given the amount of tags I wish to whitelist and the number of different sites I wish to download these tags from, the amount of rows I would need to create would be hard to manage.
Additional context
Grabber seems to have an option called whitelist in the General options but I cannot determine its use. As far as I can tell that option does not do what I describe in the solution I am looking for.
Grabber seems to have an option called whitelist in the General options but I cannot determine its use. As far as I can tell that option does not do what I describe in the solution I am looking for.
The whitelist is (at least currently) used to auto-download images based on tags. If a tag is present on an image and you load a page with it, it will automatically download it.
To be honest this feature was introduced such long time ago I don't even remember if it was supposed to do what you're suggesting (countering the blacklist), or what it's actually doing right now.
And honestly, this feature doesn't really make sense anymore with the favorites and monitoring system. Especially when issue #1620 will be done. So I guess it could be "recycled" into some kind of "blacklist overrider".
So to answer your question: no, there is currently no "whitelist" system to counter the blacklist.
However, for the example you mention, that is to blacklist "3d" except for some artists, you'll be happy to know that blacklists support complex expressions.
Indeed, each line of the blacklist is one _expression_, not necessarily just a tag. So you could have a line with "3d -artist1 -artist2" and it should only blacklist images which match the whole expression (here "have the tag '3d' but not 'artist1' nor 'artist2').
The problem of course is if you want to blacklist a bunch of similar tags, then you'll have to duplicate the "whitelisted" tags on each line. It's kind of ugly but it should work.
Thanks, that is as you say indeed an ugly solution but with a lot of copy/pasting it should do exactly what I want. Is there somewhere the advanced features of the Blacklist are documented? I could not find a page for it on the wiki.
I guess the line under the blacklist setting kinda explains it in an unclear way:
One line per blacklist. You can put multiple tags on a single line to make "AND" conditions.
Otherwise, it's explained in the docs:
https://bionus.github.io/imgbrd-grabber/docs/search.html#blacklist
The wiki is deprecated, I'll clear it and add links to the docs instead.
Is it at least possible to shortcut all blacklisted tags IF the artist tag is in our favorite tags ? Maybe just a checkbox that allows this special behavior ?
Most helpful comment
The whitelist is (at least currently) used to auto-download images based on tags. If a tag is present on an image and you load a page with it, it will automatically download it.
To be honest this feature was introduced such long time ago I don't even remember if it was supposed to do what you're suggesting (countering the blacklist), or what it's actually doing right now.
And honestly, this feature doesn't really make sense anymore with the favorites and monitoring system. Especially when issue #1620 will be done. So I guess it could be "recycled" into some kind of "blacklist overrider".
So to answer your question: no, there is currently no "whitelist" system to counter the blacklist.
However, for the example you mention, that is to blacklist "3d" except for some artists, you'll be happy to know that blacklists support complex expressions.
Indeed, each line of the blacklist is one _expression_, not necessarily just a tag. So you could have a line with "3d -artist1 -artist2" and it should only blacklist images which match the whole expression (here "have the tag '3d' but not 'artist1' nor 'artist2').
The problem of course is if you want to blacklist a bunch of similar tags, then you'll have to duplicate the "whitelisted" tags on each line. It's kind of ugly but it should work.