[zerochan] fix 'source' extraction

This commit is contained in:
Mike Fährmann
2024-07-23 09:34:44 +02:00
parent ae40c61c21
commit 1aadc29c5b
2 changed files with 43 additions and 2 deletions

View File

@@ -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"]