From 84840e716bd2d6f18b016ff32c3ac0daa93607ad Mon Sep 17 00:00:00 2001 From: JackDandy Date: Thu, 17 May 2018 15:33:02 +0100 Subject: [PATCH] Fix authorisation issue affecting some providers. --- CHANGES.md | 7 ++++++- sickbeard/providers/generic.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 285ce240..6c7dcd47 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.16.8 (2018-05-17 02:00:00 UTC) +### 0.16.9 (2018-05-17 15:30:00 UTC) + +* Fix authorisation issue affecting some providers + + +### 0.16.8 (2018-05-17 02:00:00 UTC) * Fix changing master id via search method diff --git a/sickbeard/providers/generic.py b/sickbeard/providers/generic.py index 05f13a14..509ba640 100644 --- a/sickbeard/providers/generic.py +++ b/sickbeard/providers/generic.py @@ -1545,6 +1545,7 @@ class TorrentProvider(GenericProvider): return False passfield, userfield = None, None + post_params = isinstance(post_params, type({})) and post_params or {} if not url: if hasattr(self, 'urls'): url = self.urls.get('login_action') @@ -1555,7 +1556,6 @@ class TorrentProvider(GenericProvider): if self.should_skip() or None is response: return False try: - post_params = isinstance(post_params, type({})) and post_params or {} form = 'form_tmpl' in post_params and post_params.pop('form_tmpl') if form: form = re.findall(