Commit ed016edb authored by echel0n's avatar echel0n

Merge branch 'release/9.2.97'

parents 6302321e 7cf97c11
# Changelog
- * 0369f5e - 2018-01-15: Release v9.2.95
- * b43fee1 - 2018-01-18: Release v9.2.97
- * f9983e3 - 2018-01-18: Fixed issue with SR API and expired tokens
- * b8ae4e8 - 2018-01-15: Release v9.2.95
- * 0817995 - 2018-01-15: Fixed issue #169 - Missing parameter: "refresh_token" is required
- * 70d1ecc - 2018-01-14: Fixed issue #167 - PreconditionsException when saving IMDB info
- * 4931383 - 2018-01-12: Release v9.2.94
......
......@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from urlparse import urljoin
from oauthlib.oauth2 import BackendApplicationClient
from oauthlib.oauth2 import BackendApplicationClient, TokenExpiredError
from requests_oauthlib import OAuth2Session
import sickrage
......@@ -14,15 +14,23 @@ class RefreshOAuth2Session(OAuth2Session):
self.token_url = kwargs.pop('token_url')
super(RefreshOAuth2Session, self).__init__(*args, **kwargs)
def renew_token(self):
self.token = self.fetch_token(
token_url=self.token_url,
**self.auto_refresh_kwargs
)
self.token_updater(self.token)
def request(self, *args, **kwargs):
resp = super(RefreshOAuth2Session, self).request(*args, **kwargs)
if resp.status_code == 401:
self.token = self.fetch_token(
token_url=self.token_url,
**self.auto_refresh_kwargs
)
self.token_updater(self.token)
try:
resp = super(RefreshOAuth2Session, self).request(*args, **kwargs)
if resp.status_code == 401:
self.renew_token()
resp = super(RefreshOAuth2Session, self).request(*args, **kwargs)
except TokenExpiredError:
self.renew_token()
resp = super(RefreshOAuth2Session, self).request(*args, **kwargs)
return resp
......
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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <ech[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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Greek\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: English\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Spanish\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Finnish\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: French\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Hebrew\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Hungarian\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Italian\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Japanese\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Korean\n"
"MIME-Version: 1.0\n"
......
......@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: sickrage 9.2.95\n"
"Project-Id-Version: sickrage 9.2.97\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Dutch\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Norwegian\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Polish\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Portuguese\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Romanian\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <ec[email protected]>\n"
"Language-Team: Russian\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Swedish\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Turkish\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]a>\n"
"Language-Team: Ukrainian\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:48-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:21-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Vietnamese\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Chinese Simplified\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-15 14:47-0500\n"
"PO-Revision-Date: 2018-01-15 14:47-0500\n"
"POT-Creation-Date: 2018-01-18 01:19-0500\n"
"PO-Revision-Date: 2018-01-18 01:20-0500\n"
"Last-Translator: echel0n <[email protected]>\n"
"Language-Team: Chinese Traditional\n"
"MIME-Version: 1.0\n"
......
9.2.95
\ No newline at end of file
9.2.97
\ No newline at end of file
Markdown is supported
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