From ad2767e61298e1816bf01cfd728d3afd1c13d988 Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 13 Dec 2013 14:00:01 +0100 Subject: Easybytez: fixed expire date parse (cherry picked from commit d05b134c6e739c5052070b35b5ec6b4b73f2a6bd) --- pyload/plugins/accounts/EasybytezCom.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyload/plugins/accounts/EasybytezCom.py b/pyload/plugins/accounts/EasybytezCom.py index cd995fbe5..72f37b699 100644 --- a/pyload/plugins/accounts/EasybytezCom.py +++ b/pyload/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'Premium account expire:([^<]+)' + VALID_UNTIL_PATTERN = r'Premium account expire:([^<]+)' TRAFFIC_LEFT_PATTERN = r'Traffic available today:(?P[^<]+)' 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 -- cgit v1.2.3