diff options
author | CrazYoshi <mar862002@hotmail.com> | 2014-03-18 13:49:55 +0100 |
---|---|---|
committer | CrazYoshi <mar862002@hotmail.com> | 2014-03-18 13:49:55 +0100 |
commit | 94d3ffda1f90327f41b8f77bb15d099e95410b6a (patch) | |
tree | d66f70e4e203e8099f1c390ea12c2b073f18c9f9 /module/plugins/accounts/EasybytezCom.py | |
parent | Zippyshare: fixed #542 (diff) | |
download | pyload-94d3ffda1f90327f41b8f77bb15d099e95410b6a.tar.xz |
Easybytez registered user seen as premium account
Now registered users are not seen as premium anymore. validuntil date and trafficleft criteria changed.
Diffstat (limited to 'module/plugins/accounts/EasybytezCom.py')
-rw-r--r-- | module/plugins/accounts/EasybytezCom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/EasybytezCom.py b/module/plugins/accounts/EasybytezCom.py index 72f37b699..93a221615 100644 --- a/module/plugins/accounts/EasybytezCom.py +++ b/module/plugins/accounts/EasybytezCom.py @@ -18,7 +18,7 @@ """ import re -from time import mktime, strptime +from time import mktime, strptime, gmtime from module.plugins.Account import Account from module.plugins.internal.SimpleHoster import parseHtmlForm @@ -27,7 +27,7 @@ from module.utils import parseFileSize class EasybytezCom(Account): __name__ = "EasybytezCom" - __version__ = "0.03" + __version__ = "0.04" __type__ = "account" __description__ = """EasyBytez.com account plugin""" __author_name__ = ("zoidberg") @@ -44,19 +44,19 @@ class EasybytezCom(Account): found = re.search(self.VALID_UNTIL_PATTERN, html) if found: - premium = True - trafficleft = -1 try: self.logDebug("Expire date: " + found.group(1)) validuntil = mktime(strptime(found.group(1), "%d %B %Y")) except Exception, e: self.logError(e) + if validuntil>mktime(gmtime()): + premium = True + trafficleft = -1 else: found = re.search(self.TRAFFIC_LEFT_PATTERN, html) if found: trafficleft = found.group(1) if "Unlimited" in trafficleft: - premium = True trafficleft = -1 else: trafficleft = parseFileSize(trafficleft) / 1024 |