Merge branch 'master' into develop

This commit is contained in:
JackDandy 2018-05-17 15:42:06 +01:00
commit 4cdcebb31d
2 changed files with 6 additions and 1 deletions

View file

@ -16,6 +16,11 @@
### 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

View file

@ -1552,6 +1552,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')
@ -1562,7 +1563,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(