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

[nhentai] Add support for extracting galleries based on artist page links #1950

Closed
TheGlassEyedVillian opened this issue Oct 13, 2021 · 1 comment

Comments

@TheGlassEyedVillian
Copy link

TheGlassEyedVillian commented Oct 13, 2021

Currently gallery-dl has no support for artist links
An example of such link is:
https://nhentai.net/artist/minamoto/
These can even be sorted based on Popularity
Examples:
https://nhentai.net/artist/minamoto/popular
https://nhentai.net/artist/minamoto/popular-month
https://nhentai.net/artist/minamoto/popular-week
https://nhentai.net/artist/minamoto/popular-today

Also, it would be cool to filter some of them by tags, if possible.
For Example:
I would like to get the following link.
https://nhentai.net/artist/minamoto/
But only galleries containing the "English" and "Full Color" tag

So why not use the "search" feature on nhentai?
Because some tags and artists might have same names but different artist page links.
For example:
Suppose I want the entire gallery of an artist named "Ayane"
I would search for the following
https://nhentai.net/search/?q=ayane
But not only this bring results containing everything that has "Ayane" in it

The following query is an alternative:
https://nhentai.net/search/?q=artist%3Aayane
This does filter the galleries by artists, but since many artists have the string "Ayane" in their names, galleries containing those are returned as well.
In this case it returns results for "Ayane" as well as "Nanami Ayane"

This issue is also referenced in the following reddit post
https://www.reddit.com/r/nhentai/comments/mpez4b/search_exact_match/

AFAIK nhentai doesn't have a way to filter it out.
Thanks for considering.

@alice945
Copy link
Contributor

I have opened a pull request that adds this (#1955).
To filter by tags, use the --filter argument. For example:
gallery-dl --filter "'full color' in tags and lang == 'en'" https://nhentai.net/artist/minamoto/

@mikf mikf closed this as completed in 5009876 Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants