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

Won't download Mangadex chapters anymore - mattributes["title"]["en"] #1815

Closed
fsktom opened this issue Aug 31, 2021 · 1 comment
Closed
Labels

Comments

@fsktom
Copy link

fsktom commented Aug 31, 2021

Hi. I tried downloading a chapter from mangadex, but it returned an error message (which it never did before btw) - maybe mangadex changed something.

$ gallery-dl --verbose https://mangadex.org/chapter/648e7282-8721-4f70-ac2a-4010bf2ed33e

[gallery-dl][debug] Version 1.18.3
[gallery-dl][debug] Python 3.9.0 - Windows-10-10.0.19041-SP0
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.5
[gallery-dl][debug] Starting DownloadJob for 'https://mangadex.org/chapter/648e7282-8721-4f70-ac2a-4010bf2ed33e'
[mangadex][debug] Using MangadexChapterExtractor for 'https://mangadex.org/chapter/648e7282-8721-4f70-ac2a-4010bf2ed33e'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.mangadex.org:443
[urllib3.connectionpool][debug] https://api.mangadex.org:443 "GET /chapter/648e7282-8721-4f70-ac2a-4010bf2ed33e HTTP/1.1" 200 None
[urllib3.connectionpool][debug] https://api.mangadex.org:443 "GET /manga/e78a489b-6632-4d61-b00b-5206f5b8b22b HTTP/1.1" 200 None
[mangadex][error] An unexpected error occurred: KeyError - 'en'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[mangadex][debug]
Traceback (most recent call last):
  File "c:\users\shade\appdata\local\programs\python\python39\lib\site-packages\gallery_dl\extractor\mangadex.py", line 114, in items
    chapter, data = self._cache.pop(self.uuid)
KeyError: '648e7282-8721-4f70-ac2a-4010bf2ed33e'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\shade\appdata\local\programs\python\python39\lib\site-packages\gallery_dl\job.py", line 76, in run
    for msg in self.extractor:
  File "c:\users\shade\appdata\local\programs\python\python39\lib\site-packages\gallery_dl\extractor\mangadex.py", line 117, in items
    data = self._transform(chapter)
  File "c:\users\shade\appdata\local\programs\python\python39\lib\site-packages\gallery_dl\extractor\mangadex.py", line 64, in _transform
    "manga"   : mattributes["title"]["en"],
KeyError: 'en'
@mikf
Copy link
Owner

mikf commented Sep 3, 2021

This was already fixed in commit ddd175d. It only happens for manga without English title.

@mikf mikf added the bug label Sep 3, 2021
@mikf mikf closed this as completed Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants