merge #3460: [poipiku] fix extraction for a different warning button style
(#3493, #3492)
This commit is contained in:
@@ -59,7 +59,7 @@ class PoipikuExtractor(Extractor):
|
|||||||
"//img.", "//img-org.", 1)
|
"//img.", "//img-org.", 1)
|
||||||
yield Message.Url, url, text.nameext_from_url(url, post)
|
yield Message.Url, url, text.nameext_from_url(url, post)
|
||||||
|
|
||||||
if not extr('> show all', '<'):
|
if not extr(' show all(+', '<'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
url = self.root + "/f/ShowAppendFileF.jsp"
|
url = self.root + "/f/ShowAppendFileF.jsp"
|
||||||
@@ -162,6 +162,21 @@ class PoipikuPostExtractor(PoipikuExtractor):
|
|||||||
"user_name": "wadahito",
|
"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):
|
def __init__(self, match):
|
||||||
|
|||||||
Reference in New Issue
Block a user