mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-29 16:00:23 +00:00
trakt list fix
This commit is contained in:
parent
07546d75c7
commit
7e9a8ce598
1 changed files with 5 additions and 1 deletions
|
@ -112,6 +112,10 @@ class Trakt:
|
|||
else:
|
||||
response = self.config.get(f"{base_url}{url}?page={current}", headers=headers)
|
||||
if response.status_code == 200:
|
||||
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}")
|
||||
|
|
Loading…
Reference in a new issue