summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilerNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 16:02:29 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 16:02:29 +0100
commitfb65d5354c3cc80c3f48c3a2745b8dc01105edfd (patch)
tree822240f20e27f2d5edc3e10624fc622e7c26cdc6 /module/plugins/accounts/FilerNet.py
parent[UploadedTo] Fix trafficleft recognition (diff)
downloadpyload-fb65d5354c3cc80c3f48c3a2745b8dc01105edfd.tar.xz
Update account plugins
Diffstat (limited to 'module/plugins/accounts/FilerNet.py')
-rw-r--r--module/plugins/accounts/FilerNet.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/accounts/FilerNet.py b/module/plugins/accounts/FilerNet.py
index cb913a27e..a845e7ba4 100644
--- a/module/plugins/accounts/FilerNet.py
+++ b/module/plugins/accounts/FilerNet.py
@@ -9,7 +9,7 @@ from module.plugins.Account import Account
class FilerNet(Account):
__name__ = "FilerNet"
__type__ = "account"
- __version__ = "0.02"
+ __version__ = "0.03"
__description__ = """Filer.net account plugin"""
__license__ = "GPLv3"
@@ -29,12 +29,14 @@ class FilerNet(Account):
if re.search(self.FREE_PATTERN, html):
return {"premium": False, "validuntil": None, "trafficleft": None}
- until = re.search(self.WALID_UNTIL_PATTERN, html)
+ until = re.search(self.WALID_UNTIL_PATTERN, html)
traffic = re.search(self.TRAFFIC_PATTERN, html)
+
if until and traffic:
- validuntil = int(time.mktime(time.strptime(until.group(1), "%d.%m.%Y %H:%M:%S")))
+ validuntil = time.mktime(time.strptime(until.group(1), "%d.%m.%Y %H:%M:%S"))
trafficleft = self.parseTraffic(traffic.group(1))
return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft}
+
else:
self.logError(_("Unable to retrieve account information"))
return {"premium": False, "validuntil": None, "trafficleft": None}