[85] fix trakt chart limit

This commit is contained in:
meisnate12 2022-05-11 01:17:30 -04:00
parent bc86686cd5
commit 8f30b75788
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1.16.5-develop84
1.16.5-develop85

View file

@ -214,7 +214,7 @@ class Trakt:
response = self.config.post(f"{base_url}{url}", json=json, headers=headers)
else:
response = self.config.get(f"{base_url}{url}", headers=headers, params=params)
if pages == 1 and "X-Pagination-Page-Count" in response.headers:
if pages == 1 and "X-Pagination-Page-Count" in response.headers and not params:
pages = int(response.headers["X-Pagination-Page-Count"])
if response.status_code >= 400:
raise Failed(f"({response.status_code}) {response.reason}")