summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilejungleCom.py
diff options
context:
space:
mode:
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()