summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/mangahere.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-01-09 22:31:29 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-01-09 22:31:29 -0500
commitbc435e826dbe37969d9cbe280f58810d054932cc (patch)
tree4c12d1bd5d5fdaa4f6a65c38c85dd8f0ecdadc6b /gallery_dl/extractor/mangahere.py
parentf9a1a9dcb7df977eeac9544786df9c0b93795815 (diff)
New upstream version 1.12.2upstream/1.12.2
Diffstat (limited to 'gallery_dl/extractor/mangahere.py')
-rw-r--r--gallery_dl/extractor/mangahere.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gallery_dl/extractor/mangahere.py b/gallery_dl/extractor/mangahere.py
index e15acbe..52cc672 100644
--- a/gallery_dl/extractor/mangahere.py
+++ b/gallery_dl/extractor/mangahere.py
@@ -97,10 +97,19 @@ class MangahereMangaExtractor(MangahereBase, MangaExtractor):
"url": "654850570aa03825cd57e2ae2904af489602c523",
"keyword": "c8084d89a9ea6cf40353093669f9601a39bf5ca2",
}),
+ # adult filter (#556)
+ ("http://www.mangahere.cc/manga/gunnm_mars_chronicle/", {
+ "pattern": MangahereChapterExtractor.pattern,
+ "count": ">= 50",
+ }),
("https://www.mangahere.co/manga/aria/"),
("https://m.mangahere.co/manga/aria/"),
)
+ def __init__(self, match):
+ MangaExtractor.__init__(self, match)
+ self.session.cookies.set("isAdult", "1", domain="www.mangahere.cc")
+
def chapters(self, page):
results = []
manga, pos = text.extract(page, '<meta name="og:title" content="', '"')