Commit 36ce10b3 authored by echel0n's avatar echel0n
Browse files

Release v9.3.39

parent 56451a31
# Changelog
- * dbfb716 - 2018-06-21: Release v9.3.38
- * 9e17afd - 2018-06-21: Release v9.3.39
- * c2a903e - 2018-06-21: Release v9.3.38
- * 4ee3db6 - 2018-06-21: Fixed issue with how data is formatted on return for app api
- * c63362a - 2018-06-21: Added AppID registration to account profiles
- * 08580c9 - 2018-06-20: Release v9.3.37
......
......@@ -51,13 +51,21 @@ class API(object):
hooks={'response': self.throttle_hook}, **kwargs)
if resp.status_code == 401:
raise unauthorized(resp.json()['message'])
msg = resp.json()['message']
raise unauthorized(msg)
elif resp.status_code >= 400:
raise error(resp.json()['message'])
msg = resp.json()['message']
if resp.status_code == 500 and msg == 'Token is expired':
raise TokenExpiredError
raise error(msg)
return resp.json()
except TokenExpiredError as e:
self.token = sickrage.app.oidc_client.refresh_token(self.token['refresh_token'])
try:
self.token = sickrage.app.oidc_client.refresh_token(self.token['refresh_token'])
except Exception:
if os.path.exists(self.token_file):
os.remove(self.token_file)
return self._request(method, url, **kwargs)
except (InvalidClientIdError, MissingTokenError) as e:
sickrage.app.log.warning("SiCKRAGE username or password is incorrect, please try again")
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-06-21 20:48-0700\n"
"POT-Creation-Date: 2018-06-21 22:01-0700\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Arabic\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-06-21 20:48-0700\n"
"POT-Creation-Date: 2018-06-21 22:01-0700\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Catalan\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-06-21 20:48-0700\n"
"POT-Creation-Date: 2018-06-21 22:01-0700\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Czech\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-06-21 20:48-0700\n"
"POT-Creation-Date: 2018-06-21 22:01-0700\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Danish\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-06-21 20:48-0700\n"
"POT-Creation-Date: 2018-06-21 22:01-0700\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: German\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-06-21 20:48-0700\n"
"POT-Creation-Date: 2018-06-21 22:01-0700\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Greek\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment