From d2e2b127651a5a44b56337eb6d9ca246c97a208a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 17 Jul 2015 03:03:26 +0200 Subject: Spare fixes and code cosmetics --- module/plugins/accounts/FilejungleCom.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'module/plugins/accounts/FilejungleCom.py') diff --git a/module/plugins/accounts/FilejungleCom.py b/module/plugins/accounts/FilejungleCom.py index 5b4092681..f5ee5889a 100644 --- a/module/plugins/accounts/FilejungleCom.py +++ b/module/plugins/accounts/FilejungleCom.py @@ -2,6 +2,7 @@ import re import time +import urlparse from module.plugins.internal.Account import Account @@ -37,13 +38,14 @@ class FilejungleCom(Account): def login(self, user, data, req): - html = self.load(self.URL + "login.php", - post={"loginUserName": user, - "loginUserPassword": data['password'], - "loginFormSubmit": "Login", - "recaptcha_challenge_field": "", - "recaptcha_response_field": "", - "recaptcha_shortencode_field": ""}, req=req) + html = self.load(urlparse.urljoin(self.URL, "login.php"), + post={"loginUserName" : user, + "loginUserPassword" : data['password'], + "loginFormSubmit" : "Login", + "recaptcha_challenge_field" : "", + "recaptcha_response_field" : "", + "recaptcha_shortencode_field": ""}, + req=req) if re.search(self.LOGIN_FAILED_PATTERN, html): self.wrong_password() -- cgit v1.2.3