Skip to content

Commit

Permalink
[mangahere] send 'isAdult' cookie (fixes #556)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jan 4, 2020
1 parent 025f6e3 commit 0b4cb8e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gallery_dl/extractor/mangahere.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="', '"')
Expand Down

0 comments on commit 0b4cb8e

Please sign in to comment.