1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-02-01 12:01:41 +01:00

[poipiku] fix extraction for a different warning button style

This commit is contained in:
blankie 2022-12-26 00:23:46 +07:00
parent 294108c90a
commit 2f985bcddb
No known key found for this signature in database
GPG Key ID: CC15FC822C7F61F5

View File

@ -59,7 +59,7 @@ class PoipikuExtractor(Extractor):
"//img.", "//img-org.", 1)
yield Message.Url, url, text.nameext_from_url(url, post)
if not extr('> show all', '<'):
if not extr(' show all(+', '<'):
continue
url = self.root + "/f/ShowAppendFileF.jsp"
@ -162,6 +162,21 @@ class PoipikuPostExtractor(PoipikuExtractor):
"user_name": "wadahito",
},
}),
# different warning button style
("https://poipiku.com/3572553/5776587.html", {
"pattern": r"https://img-org\.poipiku.com/user_img\d+/003572553"
r"/005776587_(\d+_)?\w+\.jpeg$",
"count": 3,
"keyword": {
"count": "3",
"description": "ORANGE OASISボスネタバレ",
"num": int,
"post_category": "SPOILER",
"post_id": "5776587",
"user_id": "3572553",
"user_name": "nagakun",
},
}),
)
def __init__(self, match):