Skip to content

Commit

Permalink
fix get_results
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Sep 26, 2024
1 parent ee26d0c commit ab199f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.20
1.2.21
2 changes: 1 addition & 1 deletion tmdbapis/objs/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_results(self, amount: Optional[int] = None):
raise Invalid("amount must be greater than 0")
results = []
current_page = 0
while len(results) < amount and current_page < self.total_pages:
while len(results) < amount and current_page < self.total_pages and current_page < 500:
current_page += 1
self.load_page(current_page)
if len(results) + len(self.results) < amount:
Expand Down

0 comments on commit ab199f8

Please sign in to comment.