Commit abf1b98e authored by echel0n's avatar echel0n
Browse files

Release v9.3.41

parent 4de2ca50
# Changelog
- * 416425d - 2018-06-21: Release v9.3.40
- * 0412b53 - 2018-06-21: Release v9.3.41
- * 8bd7022 - 2018-06-21: Release v9.3.40
- * 36ce10b - 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
......
......@@ -17,6 +17,7 @@ class API(object):
self.api_url = 'https://api.sickrage.ca/api/v1/'
self.token_file = os.path.join(sickrage.app.data_dir, 'sr_token.json')
self._token = {}
self._refreshed = False
@property
def session(self):
......@@ -53,7 +54,8 @@ class API(object):
elif resp.status_code >= 400:
msg = resp.json()['message']
if resp.status_code == 500 and msg == 'Token is expired':
raise TokenExpiredError
if not self._refreshed:
raise TokenExpiredError
raise error(msg)
return resp.json()
......@@ -63,6 +65,8 @@ class API(object):
except Exception:
if os.path.exists(self.token_file):
os.remove(self.token_file)
self._refreshed = True
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 22:08-0700\n"
"POT-Creation-Date: 2018-06-21 22:31-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 22:08-0700\n"
"POT-Creation-Date: 2018-06-21 22:31-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 22:08-0700\n"
"POT-Creation-Date: 2018-06-21 22:31-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 22:08-0700\n"
"POT-Creation-Date: 2018-06-21 22:31-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 22:08-0700\n"
"POT-Creation-Date: 2018-06-21 22:31-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 22:08-0700\n"
"POT-Creation-Date: 2018-06-21 22:31-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