1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-21 18:22:30 +01:00

[poipiku] return 'count' as proper number (#6445)

This commit is contained in:
Mike Fährmann 2024-11-10 08:26:43 +01:00
parent 7916c8bf77
commit 74f1e9a1ac
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ class PoipikuExtractor(Extractor):
post = { post = {
"post_category": extr("<title>[", "]"), "post_category": extr("<title>[", "]"),
"count" : extr("(", " "), "count" : text.parse_int(extr("(", " ")),
"post_id" : parts[-1].partition(".")[0], "post_id" : parts[-1].partition(".")[0],
"user_id" : parts[-2], "user_id" : parts[-2],
"user_name" : text.unescape(extr( "user_name" : text.unescape(extr(

View File

@ -29,7 +29,7 @@ __tests__ = (
"#class" : poipiku.PoipikuPostExtractor, "#class" : poipiku.PoipikuPostExtractor,
"#pattern" : r"https://img-org\.poipiku\.com/user_img\d+/000025049/005864576_EWN1Y65gQ\.png$", "#pattern" : r"https://img-org\.poipiku\.com/user_img\d+/000025049/005864576_EWN1Y65gQ\.png$",
"count" : "1", "count" : 1,
"description" : "", "description" : "",
"extension" : "png", "extension" : "png",
"filename" : "005864576_EWN1Y65gQ", "filename" : "005864576_EWN1Y65gQ",
@ -47,7 +47,7 @@ __tests__ = (
"#pattern" : r"https://img-org\.poipiku\.com/user_img\d+/002166245/006411749_\w+\.jpeg$", "#pattern" : r"https://img-org\.poipiku\.com/user_img\d+/002166245/006411749_\w+\.jpeg$",
"#count" : 4, "#count" : 4,
"count" : "4", "count" : 4,
"description" : "絵茶の産物ネタバレあるやつ", "description" : "絵茶の産物ネタバレあるやつ",
"num" : int, "num" : int,
"post_category": "SPOILER", "post_category": "SPOILER",
@ -64,7 +64,7 @@ __tests__ = (
"#pattern" : r"https://img-org\.poipiku.com/user_img\d+/003572553/005776587_(\d+_)?\w+\.jpeg$", "#pattern" : r"https://img-org\.poipiku.com/user_img\d+/003572553/005776587_(\d+_)?\w+\.jpeg$",
"#count" : 3, "#count" : 3,
"count" : "3", "count" : 3,
"description" : "ORANGE OASISボスネタバレ<br />曲も大好き<br />2枚目以降はほとんど見えなかった1枚目背景のヒエログリフ小ネタです𓀀", "description" : "ORANGE OASISボスネタバレ<br />曲も大好き<br />2枚目以降はほとんど見えなかった1枚目背景のヒエログリフ小ネタです𓀀",
"num" : int, "num" : int,
"post_category": "SPOILER", "post_category": "SPOILER",