Skip to content

Commit

Permalink
[mangadex] download chapters with 'externalUrl' (fixes #2503)
Browse files Browse the repository at this point in the history
if the have pages hosted on mangadex
  • Loading branch information
mikf committed Apr 18, 2022
1 parent 97e8a15 commit 4d18968
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gallery_dl/extractor/mangadex.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ class MangadexChapterExtractor(MangadexExtractor):
"keyword": "6abcbe1e24eeb1049dc931958853cd767ee483fb",
}),
# MANGA Plus (#1154)
("https://mangadex.org/chapter/8d50ed68-8298-4ac9-b63d-cb2aea143dd0", {
("https://mangadex.org/chapter/74149a55-e7c4-44ea-8a37-98e879c1096f", {
"exception": exception.StopExtraction,
}),
# 'externalUrl', but still downloadable (#2503)
("https://mangadex.org/chapter/364728a4-6909-4164-9eea-6b56354f7c78", {
"count": 39,
}),
)

def items(self):
Expand All @@ -116,7 +120,7 @@ def items(self):
chapter = self.api.chapter(self.uuid)
data = self._transform(chapter)

if data.get("_external_url"):
if data.get("_external_url") and not data["count"]:
raise exception.StopExtraction(
"Chapter %s%s is not available on MangaDex and can instead be "
"read on the official publisher's website at %s.",
Expand Down

0 comments on commit 4d18968

Please sign in to comment.