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

[mangadex] Ability to download whole author page #6372

Closed
kattjevfel opened this issue Oct 24, 2024 · 6 comments
Closed

[mangadex] Ability to download whole author page #6372

kattjevfel opened this issue Oct 24, 2024 · 6 comments

Comments

@kattjevfel
Copy link
Contributor

I'd like the ability to download everything from an author, if that's possible through the API.

Example URL: https://mangadex.org/author/7222d0d5-836c-4bf3-9174-72bceade8c87/kotoyama

@mikf
Copy link
Owner

mikf commented Oct 24, 2024

Not sure if 0fd98f6 grabs all manga when there are more than a certain number, but it gets all 6 from kotoyama.

@kattjevfel
Copy link
Contributor Author

It appears to be limited to 10 entries, not sure in what order, but that also applies to https://mangadex.org/authors (anyone with 10+ entries still just list 10)

Example author with 16 entries: https://mangadex.org/author/254efca2-0ac0-432c-a3a3-55b7e207e87d/flipflops

Entirely understandable if this can't (or shouldn't) be worked around, but should probably be documented :P

@mikf
Copy link
Owner

mikf commented Oct 24, 2024

Using the general /manga endpoint with its authorOrArtist parameter allows fetching all of an artist's manga. Should have tested this a bit more before committing and pushing. Sorry.

mikf added a commit that referenced this issue Oct 25, 2024
allows for more than 10 manga to be returned
@mikf mikf closed this as completed Oct 25, 2024
@kattjevfel
Copy link
Contributor Author

Thanks for the mega quick solution!

@kattjevfel
Copy link
Contributor Author

Oh no, it appears it doesn't like when you have set extractor.mangadex.lang with that last commit, I just now had a chance to try the commit out.

katt@main ~ » gallery-dl --verbose --get-urls https://mangadex.org/author/254efca2-0ac0-432c-a3a3-55b7e207e87d/flipflops                                                                            130 ↵
[gallery-dl][debug] Version 1.27.7
[gallery-dl][debug] Python 3.12.7 - Linux-6.11.5-zen1-1-zen-x86_64-with-glibc2.40
[gallery-dl][debug] requests 2.32.3 - urllib3 1.26.20
[gallery-dl][debug] Configuration Files ['${HOME}/.config/gallery-dl/config.json']
[gallery-dl][debug] Starting UrlJob for 'https://mangadex.org/author/254efca2-0ac0-432c-a3a3-55b7e207e87d/flipflops'
[mangadex][debug] Using MangadexAuthorExtractor for 'https://mangadex.org/author/254efca2-0ac0-432c-a3a3-55b7e207e87d/flipflops'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.mangadex.org:443
[urllib3.connectionpool][debug] https://api.mangadex.org:443 "GET /manga?authorOrArtist=254efca2-0ac0-432c-a3a3-55b7e207e87d&contentRating%5B%5D=safe&contentRating%5B%5D=suggestive&contentRating%5B%5D=erotica&contentRating%5B%5D=pornographic&translatedLanguage%5B%5D=en&includes%5B%5D=scanlation_group&offset=0 HTTP/1.1" 400 267
[mangadex][error] 400 Bad Request (validation_exception: Error validating : The property translatedLanguage is not defined and the definition does not allow additional properties)

config:

        "mangadex": {
            "path-restrict": "windows",
            "image-filter": "extension != 'gif'",
            "chapter-reverse": true,
            "page-reverse": true,
            "lang": "en",
            "directory": [
                "{category}",
                "{manga} {group}",
                "{manga} {volume:?v/ />02}{group}",
                "c{chapter:>03}{chapter_minor:R./x/}{title:? //}"
            ]
        },

@mikf mikf reopened this Oct 26, 2024
@mikf
Copy link
Owner

mikf commented Oct 26, 2024

For the time being, unset lang for author extractors:

            "lang": "en",
            "author": {
                "lang": null
            },

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

2 participants