summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/CloudzillaTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/CloudzillaTo.py')
-rw-r--r--module/plugins/accounts/CloudzillaTo.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/module/plugins/accounts/CloudzillaTo.py b/module/plugins/accounts/CloudzillaTo.py
deleted file mode 100644
index f0676f42f..000000000
--- a/module/plugins/accounts/CloudzillaTo.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from module.plugins.Account import Account
-
-
-class CloudzillaTo(Account):
- __name__ = "CloudzillaTo"
- __type__ = "account"
- __version__ = "0.01"
-
- __description__ = """Cloudzilla.to account plugin"""
- __license__ = "GPLv3"
- __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
-
-
- PREMIUM_PATTERN = r'<h2>account type</h2>\s*Premium Account'
-
-
- def loadAccountInfo(self, user, req):
- html = req.load("http://www.cloudzilla.to/")
-
- premium = True if re.search(self.PREMIUM_PATTERN, html) else False
-
- return {'validuntil': -1, 'trafficleft': -1, 'premium': premium}
-
-
- def login(self, user, data, req):
- html = req.load("http://www.cloudzilla.to/",
- post={'lusername': user,
- 'lpassword': data['password'],
- 'w' : "dologin"})
-
- if "ERROR" in html:
- self.wrongPassword()