diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-17 03:03:26 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-17 03:03:26 +0200 |
commit | d2e2b127651a5a44b56337eb6d9ca246c97a208a (patch) | |
tree | 46f34e2102fd44ed2f719727eb07a445e7baa77d /module/plugins/accounts/UlozTo.py | |
parent | No camelCase style anymore (diff) | |
download | pyload-d2e2b127651a5a44b56337eb6d9ca246c97a208a.tar.xz |
Spare fixes and code cosmetics
Diffstat (limited to 'module/plugins/accounts/UlozTo.py')
-rw-r--r-- | module/plugins/accounts/UlozTo.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/module/plugins/accounts/UlozTo.py b/module/plugins/accounts/UlozTo.py index e83124b81..b18428887 100644 --- a/module/plugins/accounts/UlozTo.py +++ b/module/plugins/accounts/UlozTo.py @@ -36,13 +36,14 @@ class UlozTo(Account): action = re.findall('<form action="(.+?)"', login_page)[1].replace('&', '&') token = re.search('_token_" value="(.+?)"', login_page).group(1) - html = self.load(urlparse.urljoin("https://www.ulozto.net/", action, req=req), - post={'_token_' : token, - 'do' : "loginForm-submit", - 'login' : u"Přihlásit", - 'password': data['password'], - 'username': user, - 'remember': "on"}) + html = self.load(urlparse.urljoin("https://www.ulozto.net/", action), + post={'_token_' : token, + 'do' : "loginForm-submit", + 'login' : u"Přihlásit", + 'password': data['password'], + 'username': user, + 'remember': "on"}, + req=req) if '<div class="flash error">' in html: self.wrong_password() |