mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[zerochan] fix 'source' extraction
This commit is contained in:
parent
ae40c61c21
commit
1aadc29c5b
@ -76,8 +76,8 @@ class ZerochanExtractor(BooruExtractor):
|
||||
'class="breadcrumbs', '</nav>'))[2:],
|
||||
"uploader": extr('href="/user/', '"'),
|
||||
"tags" : extr('<ul id="tags"', '</ul>'),
|
||||
"source" : extr('<h2>Source</h2>', '</p><h2>').rpartition(
|
||||
">")[2] or None,
|
||||
"source" : text.unescape(text.extr(
|
||||
extr('id="source-url"', '</a>'), 'href="', '"')),
|
||||
}
|
||||
|
||||
html = data["tags"]
|
||||
|
@ -63,6 +63,7 @@ __tests__ = (
|
||||
"Perth (Kantai Collection)",
|
||||
],
|
||||
"size" : 1975296,
|
||||
"source" : "",
|
||||
"tags" : [
|
||||
"Mangaka:YeFan 葉凡",
|
||||
"Game:Kantai Collection",
|
||||
@ -102,6 +103,7 @@ __tests__ = (
|
||||
"Perth (Kantai Collection)",
|
||||
],
|
||||
"size" : 1975296,
|
||||
"source" : "",
|
||||
"tags" : [
|
||||
"Mangaka:YeFan 葉凡",
|
||||
"Game:Kantai Collection",
|
||||
@ -113,4 +115,43 @@ __tests__ = (
|
||||
"width" : 1920,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.zerochan.net/4233756",
|
||||
"#category": ("booru", "zerochan", "image"),
|
||||
"#class" : zerochan.ZerochanImageExtractor,
|
||||
"#urls" : "https://static.zerochan.net/DRAGON.BALL.full.4233756.jpg",
|
||||
|
||||
"author" : "Raydash",
|
||||
"date" : "dt:2024-07-23 00:10:51",
|
||||
"extension": "jpg",
|
||||
"file_url" : "https://static.zerochan.net/DRAGON.BALL.full.4233756.jpg",
|
||||
"filename" : "DRAGON.BALL.full.4233756",
|
||||
"height" : 1125,
|
||||
"id" : 4233756,
|
||||
"path" : [
|
||||
"Toriyama Akira",
|
||||
"DRAGON BALL",
|
||||
],
|
||||
"size" : 136192,
|
||||
"source": "https://x.com/Raydash30/status/1766012730769862774",
|
||||
"tags" : [
|
||||
"Mangaka:Raydash",
|
||||
"Series:DRAGON BALL",
|
||||
"Series:DRAGON BALL Z",
|
||||
"Character:Piccolo",
|
||||
"Character:Son Gohan",
|
||||
"Theme:Duo",
|
||||
"Theme:Green Skin",
|
||||
"Theme:Male",
|
||||
"Theme:Male Focus",
|
||||
"Theme:Two Males",
|
||||
"Source:Fanart",
|
||||
"Source:Fanart from X (Twitter)",
|
||||
"Source:X (Twitter)",
|
||||
],
|
||||
"uploader" : "menotbug",
|
||||
"width" : 750,
|
||||
|
||||
},
|
||||
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user