[moebooru] fix 'tags' ending with a '+' when logged in (#1702)

This commit is contained in:
Mike Fährmann
2021-07-16 15:42:03 +02:00
parent f5b097165e
commit a6a51f207d

View File

@@ -32,7 +32,7 @@ class MoebooruExtractor(BooruExtractor):
html = text.extract(page, '<ul id="tag-', '</ul>')[0]
if html:
tags = collections.defaultdict(list)
pattern = re.compile(r"tag-type-([^\"' ]+).*?[?;]tags=([^\"']+)")
pattern = re.compile(r"tag-type-([^\"' ]+).*?[?;]tags=([^\"'+]+)")
for tag_type, tag_name in pattern.findall(html):
tags[tag_type].append(text.unquote(tag_name))
for key, value in tags.items():