From 7e9a8ce598e8d46f2bc036fe1b4b9f85f3fb0f18 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 3 Aug 2021 09:09:00 -0400 Subject: [PATCH] trakt list fix --- modules/trakt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/trakt.py b/modules/trakt.py index e747dfd0..72c7e371 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -112,7 +112,11 @@ class Trakt: else: response = self.config.get(f"{base_url}{url}?page={current}", headers=headers) if response.status_code == 200: - output_json.extend(response.json()) + json_data = response.json() + if isinstance(json_data, dict): + return json_data + else: + output_json.extend(response.json()) else: raise Failed(f"({response.status_code}) {response.reason}") current += 1