From 8f30b75788a12771b90e0309836e7a28c4ab94a2 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 11 May 2022 01:17:30 -0400 Subject: [PATCH] [85] fix trakt chart limit --- VERSION | 2 +- modules/trakt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0d035625..0acb14be 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.5-develop84 +1.16.5-develop85 diff --git a/modules/trakt.py b/modules/trakt.py index 87c304ed..03308091 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -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}")