From 96215c926eeda0542328666375d9a905fe63b0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 1 Oct 2021 16:48:53 +0200 Subject: [PATCH] [mangadex] fix retrieving chapters from 'pornographic' titles (fixes #1908) --- gallery_dl/extractor/mangadex.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gallery_dl/extractor/mangadex.py b/gallery_dl/extractor/mangadex.py index 93bc3f34..634a92d3 100644 --- a/gallery_dl/extractor/mangadex.py +++ b/gallery_dl/extractor/mangadex.py @@ -156,6 +156,9 @@ class MangadexMangaExtractor(MangadexExtractor): ("https://mangadex.org/title/7c1e2742-a086-4fd3-a3be-701fd6cf0be9", { "count": 1, }), + ("https://mangadex.org/title/584ef094-b2ab-40ce-962c-bce341fb9d10", { + "count": ">= 20", + }) ) def chapters(self): @@ -212,6 +215,8 @@ class MangadexAPI(): "order[volume]" : order, "order[chapter]" : order, "translatedLanguage[]": config("lang"), + "contentRating[]" : [ + "safe", "suggestive", "erotica", "pornographic"], } return self._pagination("/manga/" + uuid + "/feed", params)