summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/EgoFilesCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-03-11 19:51:47 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-03-11 19:51:47 +0100
commit6f1c809111689950374af8f6457ace99468e0480 (patch)
treed98d43ce9947004b082ee76b40e3f7c0a442bfec /module/plugins/accounts/EgoFilesCom.py
parentEgoFilesCom: added support for premium downloads (diff)
downloadpyload-6f1c809111689950374af8f6457ace99468e0480.tar.xz
EgoFilesCom: fixed time import trouble
Diffstat (limited to 'module/plugins/accounts/EgoFilesCom.py')
-rw-r--r--module/plugins/accounts/EgoFilesCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/EgoFilesCom.py b/module/plugins/accounts/EgoFilesCom.py
index 7ca3f3c1d..da1ed03ad 100644
--- a/module/plugins/accounts/EgoFilesCom.py
+++ b/module/plugins/accounts/EgoFilesCom.py
@@ -2,12 +2,12 @@
from module.plugins.Account import Account
import re
-from time import strptime, mktime
+import time
from module.utils import parseFileSize
class EgoFilesCom(Account):
__name__ = "EgoFilesCom"
- __version__ = "0.1"
+ __version__ = "0.2"
__type__ = "account"
__description__ = """egofiles.com account plugin"""
__author_name__ = ("stickell")
@@ -22,7 +22,7 @@ class EgoFilesCom(Account):
m = re.search(self.PREMIUM_ACCOUNT_PATTERN, html)
if m:
- validuntil = int(mktime(strptime(m.group('P'), "%Y-%m-%d %H:%M:%S")))
+ validuntil = int(time.mktime(time.strptime(m.group('P'), "%Y-%m-%d %H:%M:%S")))
trafficleft = parseFileSize(m.group('T'), m.group('U')) / 1024
return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft}
else: