summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilejungleCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 03:03:26 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 03:03:26 +0200
commitd2e2b127651a5a44b56337eb6d9ca246c97a208a (patch)
tree46f34e2102fd44ed2f719727eb07a445e7baa77d /module/plugins/accounts/FilejungleCom.py
parentNo camelCase style anymore (diff)
downloadpyload-d2e2b127651a5a44b56337eb6d9ca246c97a208a.tar.xz
Spare fixes and code cosmetics
Diffstat (limited to 'module/plugins/accounts/FilejungleCom.py')
-rw-r--r--module/plugins/accounts/FilejungleCom.py16
1 files changed, 9 insertions, 7 deletions
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()