Bionus / imgbrd-grabber

Very customizable imageboard/booru downloader with powerful filenaming features.
https://www.bionus.org/imgbrd-grabber/
Apache License 2.0
2.4k stars 212 forks source link

Ability to exclude results from Exhentai that match tags in the Grabber Blacklist #3199

Open inger147 opened 3 weeks ago

inger147 commented 3 weeks ago

Is your feature request related to a problem? Please describe

The results from Exhentai don't seem to be excluded based on the tags in my Grabber blacklist. I'm not sure if this is because Exhentai assigns a gender to most of their tags (i.e. female:tagname), but adding it to the Grabber blacklist in this manner both with & without the gender: prefix doesn't seem to work.

I can exclude tagged results on Exhentai in a Grabber search if I use "-tag:tagname", but there's a 200 character limit in the tag search that can be seen on the Exhentai website directly (any text longer than that from Grabber gets ignored), so I can't add most of the tags in my Grabber blacklist before hitting that limit.

Describe the solution you'd like

I'd like the Exhentai results in a Grabber tag search to exclude results matching the tags in my Grabber blacklist, without needing to add them to the tag search itself as exclusions.

yami-no-tusbas commented 3 weeks ago

Have you tried the post-filters ? You can clicl on the "+" icon on the right after the "Ok" button. It'll give you more option, in the post-filtering field you can add your "-tag:tagname" and it should work. But yeah it didn't work because grabber dont assume female:/male: as a valid thing, so you need to double the ":" to make it work.

So basically you can use -tag::tagname and it work, since it is a post-filter it's not sent to the website, and not posing a problem for the 200 chars limit.

As for the blacklist it is the same, you put tag::tagname and it work fine. And also you can right-click on a tag in the Tags tabs to send it to the blacklist directly.

inger147 commented 3 weeks ago

Thanks... I tried using the double colons in the blacklist, and I see that it does work to exclude some results that have that tag, but not all of them. I think what is happening is that with Exhentai, Grabber isn't pulling in all of the tags for galleries that have a lot of tags, and if the blacklisted tag is one of the tags that isn't pulled in by Grabber, the result is still shown even though it should be blacklisted. I think this effectively means that only galleries with a few tags on Exhentai will be blacklisted correctly in Grabber, unless the tag you are blacklisting happens to be one of the first few tags that Grabber has pulled in.

This issue can be verified by hovering the mouse over one of the results in Grabber that is known to have a lot of tags on the Exhentai site, and seeing that only the first several tags are listed in the "Tags: " section of the tooltip.