diff options
author | Stefano <l.stickell@yahoo.it> | 2013-12-13 14:00:01 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-12-13 14:00:01 +0100 |
commit | d05b134c6e739c5052070b35b5ec6b4b73f2a6bd (patch) | |
tree | 036cbd2db4be60f9bedab8d4ab460db5f1210483 /module/plugins/accounts | |
parent | Checksum: merged #388 (diff) | |
download | pyload-d05b134c6e739c5052070b35b5ec6b4b73f2a6bd.tar.xz |
Easybytez: fixed expire date parse
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/EasybytezCom.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/accounts/EasybytezCom.py b/module/plugins/accounts/EasybytezCom.py index cd995fbe5..72f37b699 100644 --- a/module/plugins/accounts/EasybytezCom.py +++ b/module/plugins/accounts/EasybytezCom.py @@ -27,13 +27,13 @@ from module.utils import parseFileSize class EasybytezCom(Account): __name__ = "EasybytezCom" - __version__ = "0.02" + __version__ = "0.03" __type__ = "account" __description__ = """EasyBytez.com account plugin""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") - VALID_UNTIL_PATTERN = r'<TR><TD>Premium account expire:</TD><TD><b>([^<]+)</b>' + VALID_UNTIL_PATTERN = r'Premium account expire:</TD><TD><b>([^<]+)</b>' TRAFFIC_LEFT_PATTERN = r'<TR><TD>Traffic available today:</TD><TD><b>(?P<S>[^<]+)</b>' def loadAccountInfo(self, user, req): @@ -47,7 +47,7 @@ class EasybytezCom(Account): premium = True trafficleft = -1 try: - self.logDebug(found.group(1)) + self.logDebug("Expire date: " + found.group(1)) validuntil = mktime(strptime(found.group(1), "%d %B %Y")) except Exception, e: self.logError(e) @@ -57,6 +57,7 @@ class EasybytezCom(Account): trafficleft = found.group(1) if "Unlimited" in trafficleft: premium = True + trafficleft = -1 else: trafficleft = parseFileSize(trafficleft) / 1024 |