mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[85] fix trakt chart limit
This commit is contained in:
parent
bc86686cd5
commit
8f30b75788
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.16.5-develop84
|
1.16.5-develop85
|
||||||
|
|
|
@ -214,7 +214,7 @@ class Trakt:
|
||||||
response = self.config.post(f"{base_url}{url}", json=json, headers=headers)
|
response = self.config.post(f"{base_url}{url}", json=json, headers=headers)
|
||||||
else:
|
else:
|
||||||
response = self.config.get(f"{base_url}{url}", headers=headers, params=params)
|
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"])
|
pages = int(response.headers["X-Pagination-Page-Count"])
|
||||||
if response.status_code >= 400:
|
if response.status_code >= 400:
|
||||||
raise Failed(f"({response.status_code}) {response.reason}")
|
raise Failed(f"({response.status_code}) {response.reason}")
|
||||||
|
|
Loading…
Reference in a new issue