[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

@@ -78,8 +78,8 @@ class ZerochanExtractor(BooruExtractor):
'class="breadcrumbs', '</nav>'))[2:],
"uploader": extr('href="/user/', '"'),
"tags" : extr('<ul id="tags"', '</ul>'),
"source" : text.unescape(text.extr(
extr('id="source-url"', '</a>'), 'href="', '"')),
"source" : text.unescape(text.remove_html(extr(
'id="source-url"', '</p>').rpartition("</s>")[2])),
}
html = data["tags"]