diff options
author | Stefano <l.stickell@yahoo.it> | 2013-12-13 14:00:01 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-12-16 17:06:12 +0100 |
commit | ad2767e61298e1816bf01cfd728d3afd1c13d988 (patch) | |
tree | 318c7b140608969e32ace3ef8375df8940606cc5 | |
parent | Checksum: merged #388 (diff) | |
download | pyload-ad2767e61298e1816bf01cfd728d3afd1c13d988.tar.xz |
Easybytez: fixed expire date parse
(cherry picked from commit d05b134c6e739c5052070b35b5ec6b4b73f2a6bd)
-rw-r--r-- | pyload/plugins/accounts/EasybytezCom.py | 7 |
1 files 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'<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 |