[poipiku] fix downloading R-18 posts (#5567)

… by automatically sending a `POIPIKU_CONTENTS_VIEW_MODE=1` cookie
to enable "adult" mode.
This commit is contained in:
Mike Fährmann
2024-05-09 15:14:08 +02:00
parent dc9d83e64b
commit b27ffd790a

View File

@@ -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", "")