Commit 49313831 authored by echel0n's avatar echel0n
Browse files

Release v9.2.94

parent 5d7c0ba5
# Changelog
- * db88209 - 2018-01-12: Release v9.2.93
- * 4ffbf15 - 2018-01-12: Release v9.2.94
- * deedce0 - 2018-01-12: Release v9.2.93
- * 2af9433 - 2018-01-12: Fixed issues with refresh token when using client credentials
- * c9449f9 - 2018-01-12: Fixed issues with refresh token when using client credentials
- * dae404d - 2018-01-12: Release v9.2.92
......
......@@ -9,17 +9,9 @@ import sickrage
from sickrage.core.api.exceptions import unauthorized, error
class RefreshOAuth2Session(OAuth2Session):
def request(self, *args, **kwargs):
try:
return super(RefreshOAuth2Session, self).request(*args, **kwargs)
except TokenExpiredError:
self.token = self.fetch_token(
token_url=self.auto_refresh_url,
**self.auto_refresh_kwargs
)
self.token_updater(self.token)
return super(RefreshOAuth2Session, self).request(*args, **kwargs)
class CustomBackendApplicationClient(BackendApplicationClient):
def prepare_refresh_body(self, body='', refresh_token=None, scope=None, **kwargs):
return super(CustomBackendApplicationClient, self).prepare_refresh_body(boby=body, scope=scope, **kwargs)
class API(object):
......@@ -41,8 +33,8 @@ class API(object):
@property
def session(self):
if self._session is None:
self._session = RefreshOAuth2Session(
client=BackendApplicationClient(client_id=self.credentials['client_id']),
self._session = OAuth2Session(
client=CustomBackendApplicationClient(client_id=self.credentials['client_id']),
token=self.token,
token_updater=self.token_updater,
auto_refresh_url=self.token_url,
......@@ -53,8 +45,8 @@ class API(object):
@property
def token(self):
if self._token is None:
self._token = RefreshOAuth2Session(
client=BackendApplicationClient(client_id=self.credentials['client_id'])
self._token = OAuth2Session(
client=CustomBackendApplicationClient(client_id=self.credentials['client_id'])
).fetch_token(
token_url=self.token_url,
timeout=30,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-01-12 15:05-0500\n"
"PO-Revision-Date: 2018-01-12 15:05-0500\n"
"POT-Creation-Date: 2018-01-12 15:15-0500\n"
"PO-Revision-Date: 2018-01-12 15:16-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Arabic\n"
"MIME-Version: 1.0\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-01-12 15:05-0500\n"
"PO-Revision-Date: 2018-01-12 15:05-0500\n"
"POT-Creation-Date: 2018-01-12 15:15-0500\n"
"PO-Revision-Date: 2018-01-12 15:16-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Catalan\n"
"MIME-Version: 1.0\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-01-12 15:05-0500\n"
"PO-Revision-Date: 2018-01-12 15:05-0500\n"
"POT-Creation-Date: 2018-01-12 15:15-0500\n"
"PO-Revision-Date: 2018-01-12 15:16-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Czech\n"
"MIME-Version: 1.0\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-01-12 15:05-0500\n"
"PO-Revision-Date: 2018-01-12 15:05-0500\n"
"POT-Creation-Date: 2018-01-12 15:15-0500\n"
"PO-Revision-Date: 2018-01-12 15:16-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Danish\n"
"MIME-Version: 1.0\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-01-12 15:05-0500\n"
"PO-Revision-Date: 2018-01-12 15:06-0500\n"
"POT-Creation-Date: 2018-01-12 15:15-0500\n"
"PO-Revision-Date: 2018-01-12 15:16-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: German\n"
"MIME-Version: 1.0\n"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sickragetv\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-01-12 15:05-0500\n"
"PO-Revision-Date: 2018-01-12 15:06-0500\n"
"POT-Creation-Date: 2018-01-12 15:15-0500\n"
"PO-Revision-Date: 2018-01-12 15:16-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Greek\n"
"MIME-Version: 1.0\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