summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/poipiku.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-07-03 00:57:03 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-07-03 00:57:03 -0400
commitef30b1fa552fd4ceebdd14bbcc16f30f430883f8 (patch)
treecf680fbc0801f3090b28c190b7dd4a9d0fe1f454 /gallery_dl/extractor/poipiku.py
parent9fb906aeb3816abb42f459d1b67e35024e6f2348 (diff)
New upstream version 1.25.7.upstream/1.25.7
Diffstat (limited to 'gallery_dl/extractor/poipiku.py')
-rw-r--r--gallery_dl/extractor/poipiku.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gallery_dl/extractor/poipiku.py b/gallery_dl/extractor/poipiku.py
index 14c25c4..e3bb512 100644
--- a/gallery_dl/extractor/poipiku.py
+++ b/gallery_dl/extractor/poipiku.py
@@ -76,11 +76,12 @@ class PoipikuExtractor(Extractor):
"MD" : "0",
"TWF": "-1",
}
- page = self.request(
- url, method="POST", headers=headers, data=data).json()["html"]
+ resp = self.request(
+ url, method="POST", headers=headers, data=data).json()
- if page.startswith(("You need to", "Password is incorrect")):
- self.log.warning("'%s'", page)
+ page = resp["html"]
+ if (resp.get("result_num") or 0) < 0:
+ self.log.warning("'%s'", page.replace("<br/>", " "))
for thumb in text.extract_iter(
page, 'class="IllustItemThumbImg" src="', '"'):