[zerochan] parse JSON-LD data (#7178)

This commit is contained in:
Mike Fährmann
2025-03-17 15:51:41 +01:00
parent 6532cf9075
commit d746e025a0
2 changed files with 68 additions and 8 deletions

View File

@@ -250,4 +250,58 @@ __tests__ = (
],
},
{
"#url" : "https://www.zerochan.net/4354955",
"#comment" : "quotes in HTML tags",
"#category": ("booru", "zerochan", "image"),
"#class" : zerochan.ZerochanImageExtractor,
"#auth" : False,
"#options" : {"metadata": False},
"tags": [
"Mangaka:Tory Patterson",
"Studio:SEGA",
"Game:Sonic Origins",
"Series:Sonic the Hedgehog",
"Character:Miles \"Tails\" Prower",
"Theme:Airplane",
"Theme:Flying",
"Theme:Fox",
"Source:Character Sheet",
"Source:Official Art",
"Source:Official Art from X",
"Source:X (Twitter)",
],
},
{
"#url" : "https://www.zerochan.net/2275437",
"#comment" : "unicode escapes with surrogate pair (#7178)",
"#category": ("booru", "zerochan", "image"),
"#class" : zerochan.ZerochanImageExtractor,
"#auth" : False,
"#options" : {"metadata": False},
"author" : "MAYO🍚",
"date" : "dt:2018-02-25 16:03:48",
"extension": "png",
"file_url" : "https://static.zerochan.net/Kongou.full.2275437.png",
"filename" : "Kongou.full.2275437",
"width" : 1047,
"height" : 1365,
"id" : 2275437,
"size" : 502784,
"source" : "",
"uploader" : "SubaruSumeragi",
"path" : [
"Kantai Collection",
"Kongou",
],
"tags" : [
"Mangaka:MAYO🍚",
"Game:Kantai Collection",
"Character:Kongou"
],
},
)