summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilejungleCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
commit8f17f875f6e28f73ddb10da59c6464bd04922222 (patch)
tree29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/FilejungleCom.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
Diffstat (limited to 'module/plugins/accounts/FilejungleCom.py')
-rw-r--r--module/plugins/accounts/FilejungleCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/FilejungleCom.py b/module/plugins/accounts/FilejungleCom.py
index 69fb37a65..5c91c3822 100644
--- a/module/plugins/accounts/FilejungleCom.py
+++ b/module/plugins/accounts/FilejungleCom.py
@@ -25,7 +25,7 @@ class FilejungleCom(Account):
LOGIN_FAILED_PATTERN = r'<span htmlfor="loginUser(Name|Password)" generated="true" class="fail_info">'
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
html = self.load(self.URL + "dashboard.php")
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
if m:
@@ -38,14 +38,14 @@ class FilejungleCom(Account):
return {'premium': premium, 'trafficleft': -1, 'validuntil': validuntil}
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
html = self.load(urlparse.urljoin(self.URL, "login.php"),
post={'loginUserName' : user,
- 'loginUserPassword' : data['password'],
+ 'loginUserPassword' : password,
'loginFormSubmit' : "Login",
'recaptcha_challenge_field' : "",
'recaptcha_response_field' : "",
'recaptcha_shortencode_field': ""})
if re.search(self.LOGIN_FAILED_PATTERN, html):
- self.wrong_password()
+ self.fail()