diff options
| author | 2020-12-13 23:07:42 -0500 | |
|---|---|---|
| committer | 2020-12-13 23:07:42 -0500 | |
| commit | 8f7c87a2697113134c311aaeafd9c919555a2741 (patch) | |
| tree | 4ff7316ac1570683b3c968fd30d044925e47a2a5 /gallery_dl/extractor/mangadex.py | |
| parent | 143723944033d7a6593d57bd1cf6ae97713b6ce7 (diff) | |
New upstream version 1.16.0.upstream/1.16.0
Diffstat (limited to 'gallery_dl/extractor/mangadex.py')
| -rw-r--r-- | gallery_dl/extractor/mangadex.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gallery_dl/extractor/mangadex.py b/gallery_dl/extractor/mangadex.py index c91e9a8..96c81c7 100644 --- a/gallery_dl/extractor/mangadex.py +++ b/gallery_dl/extractor/mangadex.py @@ -9,7 +9,7 @@ """Extractors for https://mangadex.org/""" from .common import Extractor, Message -from .. import text, util +from .. import text, util, exception from ..cache import memcache @@ -74,6 +74,10 @@ class MangadexChapterExtractor(MangadexExtractor): "count": 64, "keyword": "c53a0e4c12250578a4e630281085875e59532c03", }), + # MANGA Plus (#1154) + ("https://mangadex.org/chapter/1122815", { + "excepion": exception.StopExtraction, + }), ) def __init__(self, match): @@ -82,6 +86,12 @@ class MangadexChapterExtractor(MangadexExtractor): def items(self): cdata = self.chapter_data(self.chapter_id) + if "server" not in cdata: + if cdata["status"] == "external": + raise exception.StopExtraction( + "Chapter is not available on MangaDex and can be read on " + "the official publisher's website at %s.", cdata["pages"]) + raise exception.StopExtraction("No download server available.") mdata = self.manga_data(cdata["mangaId"]) chapter, sep, minor = cdata["chapter"].partition(".") |
