[nijie] fix image URLs of multi-image posts (#4876)

This commit is contained in:
Mike Fährmann
2023-12-05 17:48:50 +01:00
parent a4e6ea667b
commit 4eb3590103
3 changed files with 108 additions and 20 deletions

View File

@@ -13,6 +13,10 @@ __tests__ = (
"#url" : "https://horne.red/members.php?id=58000",
"#category": ("Nijie", "horne", "user"),
"#class" : nijie.NijieUserExtractor,
"#urls" : (
"https://horne.red/members_illust.php?id=58000",
"https://horne.red/members_dojin.php?id=58000",
),
},
{
@@ -71,11 +75,41 @@ __tests__ = (
"#class" : nijie.NijieFollowedExtractor,
},
{
"#url" : "https://horne.red/view.php?id=8708",
"#category": ("Nijie", "horne", "image"),
"#class" : nijie.NijieImageExtractor,
"#urls" : "https://pic.nijie.net/07/horne/18/00/58000/illust/0_0_c8f715a8f3d53943_db6231.png",
"artist_id" : 58000,
"artist_name": "のえるわ",
"date" : "dt:2018-01-29 14:25:39",
"description": "前回とシチュがまるかぶり \r\n竿野郎は塗るのだるかった",
"extension" : "png",
"filename" : "0_0_c8f715a8f3d53943_db6231",
"image_id" : 8708,
"num" : 0,
"tags" : [
"男の娘",
"オリキャラ",
"うちのこ",
],
"title" : "うちのこえっち",
"url" : "https://pic.nijie.net/07/horne/18/00/58000/illust/0_0_c8f715a8f3d53943_db6231.png",
"user_id" : 58000,
"user_name" : "のえるわ",
},
{
"#url" : "https://horne.red/view.php?id=8716",
"#category": ("Nijie", "horne", "image"),
"#class" : nijie.NijieImageExtractor,
"#count" : 4,
"#urls" : (
"https://pic.nijie.net/07/horne/18/00/58000/illust/0_0_b4ffb4b6f7ec6d51_1a32c0.png",
"https://pic.nijie.net/07/horne/18/00/58000/illust/8716_0_2690972a4f6270bb_85ed8f.png",
"https://pic.nijie.net/07/horne/18/00/58000/illust/8716_1_09348508d8b76f36_f6cf47.png",
"https://pic.nijie.net/08/horne/18/00/58000/illust/8716_2_5151d956d3789277_d76e75.png",
),
"artist_id" : 58000,
"artist_name": "のえるわ",