[zerochan] fix 'tags' extraction

This commit is contained in:
enduser420
2023-07-18 16:38:04 +05:30
parent 248e8bc699
commit d52ed2bc5a

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