merge #4319: [zerochan] fix 'tags' extraction

This commit is contained in:
Mike Fährmann
2023-07-18 18:37:50 +02:00

View File

@@ -78,7 +78,8 @@ class ZerochanExtractor(BooruExtractor):
html = data["tags"]
tags = data["tags"] = []
for tag in html.split("<li class=")[1:]:
category, _, name = text.extr(tag, 'alt="', '<').partition('">')
category = text.extr(tag, 'alt="', '"')
name = text.extr(tag, ">-->", "</a>")
tags.append(category + ":" + name.strip())
return data