[poipiku] add simple password support (#1602)

This commit is contained in:
Mike Fährmann 2022-06-22 18:21:01 +02:00
parent 9d8e99af80
commit 3f50e2fb5f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -24,6 +24,8 @@ class PoipikuExtractor(Extractor):
request_interval = (0.5, 1.5)
def items(self):
password = self.config("password", "")
for post_url in self.posts():
parts = post_url.split("/")
if post_url[0] == "/":
@ -68,7 +70,7 @@ class PoipikuExtractor(Extractor):
data = {
"UID": post["user_id"],
"IID": post["post_id"],
"PAS": "",
"PAS": password,
"MD" : "0",
"TWF": "-1",
}