[gelbooru] fix tag category extraction (#1455)
This commit is contained in:
@@ -47,6 +47,8 @@ class GelbooruV02Extractor(booru.BooruExtractor):
|
||||
self.root, post["id"])
|
||||
page = self.request(url).text
|
||||
html = text.extract(page, '<ul id="tag-', '</ul>')[0]
|
||||
if not html:
|
||||
html = text.extract(page, '<ul class="tag-', '</ul>')[0]
|
||||
if html:
|
||||
tags = collections.defaultdict(list)
|
||||
pattern = re.compile(
|
||||
|
||||
Reference in New Issue
Block a user