summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/CloudzillaTo.py
diff options
context:
space:
mode:
authorGravatar jansohn <jansohn@users.noreply.github.com> 2015-10-02 10:09:26 +0200
committerGravatar jansohn <jansohn@users.noreply.github.com> 2015-10-02 10:09:26 +0200
commit3a08656c5665f4b8db98744fb323e64b8630e084 (patch)
tree28f9f62ffc57888b76ca32540dbf5af3a4cfc8d0 /module/plugins/accounts/CloudzillaTo.py
parentMerge pull request #1 from pyload/stable (diff)
parent[Account] Improve parse_traffic method + code cosmetics (diff)
downloadpyload-3a08656c5665f4b8db98744fb323e64b8630e084.tar.xz
Merge pull request #2 from pyload/stable
sync with stable
Diffstat (limited to 'module/plugins/accounts/CloudzillaTo.py')
-rw-r--r--module/plugins/accounts/CloudzillaTo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/CloudzillaTo.py b/module/plugins/accounts/CloudzillaTo.py
index 0d473eb7d..821975ef0 100644
--- a/module/plugins/accounts/CloudzillaTo.py
+++ b/module/plugins/accounts/CloudzillaTo.py
@@ -8,7 +8,7 @@ from module.plugins.internal.Account import Account
class CloudzillaTo(Account):
__name__ = "CloudzillaTo"
__type__ = "account"
- __version__ = "0.04"
+ __version__ = "0.06"
__status__ = "testing"
__description__ = """Cloudzilla.to account plugin"""
@@ -19,7 +19,7 @@ class CloudzillaTo(Account):
PREMIUM_PATTERN = r'<h2>account type</h2>\s*Premium Account'
- def parse_info(self, user, password, data, req):
+ def grab_info(self, user, password, data):
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, password, data, req):
+ def signin(self, user, password, data):
html = self.load("https://www.cloudzilla.to/",
post={'lusername': user,
'lpassword': password,
'w' : "dologin"})
if "ERROR" in html:
- self.login_fail()
+ self.fail_login()