Skip to content

Commit

Permalink
[inkbunny] stop pagination on empty results
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Dec 15, 2023
1 parent 6cd5e6a commit 8b87a53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gallery_dl/extractor/inkbunny.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ def _pagination_search(self, params):

while True:
data = self._call("search", params)
if not data["submissions"]:
return

yield from self.detail(data["submissions"])

if data["page"] >= data["pages_count"]:
Expand Down

0 comments on commit 8b87a53

Please sign in to comment.