Skip to content

Commit

Permalink
[furaffinity] fix 'favorite' pagination (mikf#6151)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 6, 2024
1 parent 7fe0f35 commit 7260e23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gallery_dl/extractor/furaffinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ def _pagination_favorites(self):
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):
Expand Down

0 comments on commit 7260e23

Please sign in to comment.