[gelbooru] fix extraction without API

This commit is contained in:
Mike Fährmann
2020-08-28 22:33:01 +02:00
parent 69e4871005
commit fda9e296dd

View File

@@ -55,7 +55,7 @@ class GelbooruExtractor(booru.XmlParserMixin,
while True:
page = self.request(url, params=params).text
ids = list(text.extract_iter(page, '<a id="p', '"'))
ids = list(text.extract_iter(page, '<span id="s', '"'))
yield from ids
if len(ids) < self.per_page:
return