Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hentai-Foundry] Broken content filters, requesting authentication options to get around it #3887

Closed
taskhawk opened this issue Apr 8, 2023 · 5 comments

Comments

@taskhawk
Copy link

taskhawk commented Apr 8, 2023

The content filters in Hentai-Foundry are broken right now. If I configure the filters to show everything I get a very reduced set of images for different artists profiles, the sets are the same if I use gallery-dl or a browser. If I clear the cookies in the browser to reset the filters I get a larger set of images but still not everything.

However, if I register an account and set the filters to show everything in my profile settings page, it works as expected in the browser. But there's no way to set cookies or login details for the site with gallery-dl, so I would like to request if a method could be added to get around the broken feature.

@taskhawk taskhawk changed the title [Hentai-Foundry] Broken content filters, requesting authentication options to get around it. [Hentai-Foundry] Broken content filters, requesting authentication options to get around it Apr 8, 2023
@taskhawk
Copy link
Author

taskhawk commented Apr 9, 2023

For anyone else having the same issue as me, I managed to get it to work doing the following:

First, create an account on HF if you don't have one, and set the content filters on your profile settings page to your liking.

I noticed that cookies were already supported (my bad! I misinterpreted the Supported Sites page), so I just added it to my configuration file. I chose the list with my browser and profile.

I thought that would be enough but it wasn't. However, I noticed that the HF extractor was setting the content filters in an additional request, so I figured doing that was screwing up the results in the same way it was happening in the browser, so I located my gallery-dl installation folder (~/.local/lib/python3.8/site-packages/gallery_dl/ in my system) and modified the hentaifoundry.py file in the extractor folder, commenting out the lines 36 and 349 to prevent the additional content filter request. After that it worked as expected.

This is probably not the right way to do it but this is the extend of my knowledge.

@skulkexpert
Copy link

Can confirm that I'm also missing posts using gallery-dl without any account. Havent tried the above solution yet, but it seems like this needs a fix.

@mikf
Copy link
Owner

mikf commented Apr 9, 2023

Deleting line 156 seems to fix this issue.

"filter_media" : "A",

@mikf
Copy link
Owner

mikf commented Apr 15, 2023

Fixed in commit d84a617 and it will also no longer try to set custom content filters when a PHPSESSID cookie is present (e70af6a).

@mikf mikf closed this as completed Apr 15, 2023
@uufdj

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants