mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 22:10:22 +00:00
[3] check trakt response
This commit is contained in:
parent
23eccf1af7
commit
9718f4b221
2 changed files with 5 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.17.3-develop2
|
||||
1.17.3-develop3
|
||||
|
|
|
@ -140,7 +140,10 @@ class Trakt:
|
|||
if response.status_code != 200:
|
||||
raise Failed(f"Trakt Error: ({response.status_code}) {response.reason}")
|
||||
#raise Failed("Trakt Error: Invalid trakt pin. If you're sure you typed it in correctly your client_id or client_secret may be invalid")
|
||||
elif not self._save(response.json()):
|
||||
response_json = response.json()
|
||||
if self.config.trace_mode:
|
||||
logger.debug(response_json)
|
||||
if not self._save(response_json):
|
||||
raise Failed("Trakt Error: New Authorization Failed")
|
||||
|
||||
def _check(self, authorization=None):
|
||||
|
|
Loading…
Reference in a new issue