From 2801a0d9977d53fedb979e6e3f1ab613df6e9b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 16 Aug 2018 09:17:22 +0200 Subject: [PATCH] [exhentai] skip "Content Warning" page when not logged in (closes #97) --- gallery_dl/extractor/exhentai.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index 3e0aee39..8cb2efa1 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -58,6 +58,7 @@ class ExhentaiExtractor(Extractor): self.log.info("no username given; using e-hentai.org") self.root = "https://e-hentai.org" self.original = False + self.session.cookies["nw"] = "1" return cookies = self._login_impl(username, password) for key, value in cookies.items():