[zerochan] parse API response manually when json.loads() fails (#6632)
This commit is contained in:
@@ -208,4 +208,46 @@ __tests__ = (
|
||||
"source": "http://www.youtube.com/watch?v=0vodqkGPxt8",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.zerochan.net/4354955",
|
||||
"#comment" : "unescaped quotes in 'JSON' data (#6632)",
|
||||
"#category": ("booru", "zerochan", "image"),
|
||||
"#class" : zerochan.ZerochanImageExtractor,
|
||||
"#auth" : False,
|
||||
"#options" : {"metadata": True},
|
||||
|
||||
"author" : "SEGA",
|
||||
"date" : "dt:2024-12-05 06:06:14",
|
||||
"file_url": "https://static.zerochan.net/Miles.%22Tails%22.Prower.full.4354955.jpg",
|
||||
"filename": "Miles.\"Tails\".Prower.full.4354955",
|
||||
"height" : 705,
|
||||
"id" : 4354955,
|
||||
"name" : "Miles \"Tails\" Prower",
|
||||
"size" : 252928,
|
||||
"source" : "https://x.com/kellanstover/status/1580237736874606597",
|
||||
"uploader": "Anima-Chao",
|
||||
"width" : 4096,
|
||||
"path" : [
|
||||
"Sonic the Hedgehog",
|
||||
"Miles \"Tails\" Prower",
|
||||
],
|
||||
"tags" : [
|
||||
"Male",
|
||||
"Animal",
|
||||
"Fox",
|
||||
"Sonic the Hedgehog",
|
||||
"Flying",
|
||||
"Character Sheet",
|
||||
"Airplane",
|
||||
"SEGA",
|
||||
"Miles \"Tails\" Prower",
|
||||
"Official Art",
|
||||
"Midair",
|
||||
"X (Twitter)",
|
||||
"Sonic Origins",
|
||||
"Official Art from X",
|
||||
"Tory Patterson",
|
||||
],
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user