diff options
Diffstat (limited to 'pyload/plugins/accounts/HellshareCz.py')
-rw-r--r-- | pyload/plugins/accounts/HellshareCz.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pyload/plugins/accounts/HellshareCz.py b/pyload/plugins/accounts/HellshareCz.py index c7a918dec..4718ade99 100644 --- a/pyload/plugins/accounts/HellshareCz.py +++ b/pyload/plugins/accounts/HellshareCz.py @@ -17,10 +17,12 @@ @author: zoidberg """ -from module.plugins.Account import Account import re import time +from module.plugins.Account import Account + + class HellshareCz(Account): __name__ = "HellshareCz" __version__ = "0.14" @@ -49,7 +51,7 @@ class HellshareCz(Account): vt = [int(x) for x in credit.split('.')[:2]] lt = time.localtime() year = lt.tm_year + int(vt[1] < lt.tm_mon or (vt[1] == lt.tm_mon and vt[0] < lt.tm_mday)) - validuntil = time.mktime(time.strptime("%s%d 23:59:59" % (credit,year), "%d.%m.%Y %H:%M:%S")) + validuntil = time.mktime(time.strptime("%s%d 23:59:59" % (credit, year), "%d.%m.%Y %H:%M:%S")) trafficleft = -1 else: #Traffic-based account @@ -77,11 +79,11 @@ class HellshareCz(Account): return html = req.load('http://www.hellshare.com/login?do=loginForm-submit', post={ - "login": "Log in", - "password": data["password"], - "username": user, - "perm_login": "on" - }) + "login": "Log in", + "password": data["password"], + "username": user, + "perm_login": "on" + }) if "<p>You input a wrong user name or wrong password</p>" in html: - self.wrongPassword()
\ No newline at end of file + self.wrongPassword() |