diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 04:59:27 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 04:59:27 +0200 |
commit | 8f17f875f6e28f73ddb10da59c6464bd04922222 (patch) | |
tree | 29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/CloudzillaTo.py | |
parent | Fix typo (diff) | |
download | pyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz |
Account rewritten
Diffstat (limited to 'module/plugins/accounts/CloudzillaTo.py')
-rw-r--r-- | module/plugins/accounts/CloudzillaTo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/CloudzillaTo.py b/module/plugins/accounts/CloudzillaTo.py index 056f72594..b6c65fc8c 100644 --- a/module/plugins/accounts/CloudzillaTo.py +++ b/module/plugins/accounts/CloudzillaTo.py @@ -19,7 +19,7 @@ class CloudzillaTo(Account): PREMIUM_PATTERN = r'<h2>account type</h2>\s*Premium Account' - def load_account_info(self, user, req): + def parse_info(self, user, password, data, req): html = self.load("http://www.cloudzilla.to/") premium = True if re.search(self.PREMIUM_PATTERN, html) else False @@ -27,11 +27,11 @@ class CloudzillaTo(Account): return {'validuntil': -1, 'trafficleft': -1, 'premium': premium} - def login(self, user, data, req): + def login(self, user, password, data, req): html = self.load("https://www.cloudzilla.to/", post={'lusername': user, - 'lpassword': data['password'], + 'lpassword': password, 'w' : "dologin"}) if "ERROR" in html: - self.wrong_password() + self.fail() |