[zerochan] fix 'source' extraction when not logged in

This commit is contained in:
Mike Fährmann
2024-12-12 18:16:11 +01:00
parent 63008f77e2
commit d2c66ac34d
2 changed files with 23 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ __tests__ = (
"DRAGON BALL",
],
"size" : 136192,
"source": "https://x.com/Raydash30/status/1766012730769862774",
"source" : "https://x.com/Raydash30/status/1766012730769862774",
"tags" : [
"Mangaka:Raydash",
"Series:DRAGON BALL",
@@ -177,6 +177,26 @@ __tests__ = (
"width" : 750,
},
{
"#url" : "https://www.zerochan.net/4233756",
"#class" : zerochan.ZerochanImageExtractor,
"#auth" : False,
"#urls" : "https://static.zerochan.net/DRAGON.BALL.full.4233756.jpg",
"source" : "https://x.com/Raydash30/status/1766012730769862774",
"tags" : [
"Mangaka:Raydash",
"Series:DRAGON BALL",
"Series:DRAGON BALL Z",
"Character:Piccolo",
"Character:Son Gohan",
"Theme:Green Skin",
"Source:Fanart",
"Source:Fanart from X (Twitter)",
"Source:X (Twitter)",
],
},
{
"#url" : "https://www.zerochan.net/1395035",
"#comment" : "Invalid control character '\r' in 'source' field (#5892)",