From b27ffd790a67e2ca4e8f8e8f016cfefecf2e75bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 9 May 2024 15:14:08 +0200 Subject: [PATCH] [poipiku] fix downloading R-18 posts (#5567) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … by automatically sending a `POIPIKU_CONTENTS_VIEW_MODE=1` cookie to enable "adult" mode. --- gallery_dl/extractor/poipiku.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gallery_dl/extractor/poipiku.py b/gallery_dl/extractor/poipiku.py index f42016fc..5cc964a3 100644 --- a/gallery_dl/extractor/poipiku.py +++ b/gallery_dl/extractor/poipiku.py @@ -23,6 +23,10 @@ class PoipikuExtractor(Extractor): archive_fmt = "{post_id}_{num}" request_interval = (0.5, 1.5) + def _init(self): + self.cookies.set( + "POIPIKU_CONTENTS_VIEW_MODE", "1", domain="poipiku.com") + def items(self): password = self.config("password", "")