[gelbooru] fix extraction without API

pull/982/head
Mike Fährmann 4 years ago
parent 69e4871005
commit fda9e296dd
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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

Loading…
Cancel
Save