1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[furaffinity] fix 'favorite' pagination (#6151)

This commit is contained in:
Mike Fährmann 2024-09-06 08:52:05 +02:00
parent 7fe0f35998
commit 7260e236d8
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -179,6 +179,11 @@ class FuraffinityExtractor(Extractor):
break
self._favorite_id = text.parse_int(extr('data-fav-id="', '"'))
yield post_id
pos = page.find('type="submit">Next</button>')
if pos >= 0:
path = text.rextract(page, '<form action="', '"', pos)[0]
continue
path = text.extr(page, 'right" href="', '"')
def _pagination_search(self, query):