diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-23 22:02:16 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-23 22:02:16 +0100 |
commit | 2d492e58810a5c0c1a52cee4837b3ca4697531a3 (patch) | |
tree | a7dc1b9421f708cbfd3efe375f9f6670a783f030 /module/plugins/accounts/ShareonlineBiz.py | |
parent | added missing curl.close (diff) | |
download | pyload-2d492e58810a5c0c1a52cee4837b3ca4697531a3.tar.xz |
FileSonic Premium
Diffstat (limited to 'module/plugins/accounts/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/accounts/ShareonlineBiz.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index 3564d489c..c5e4477be 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -31,8 +31,11 @@ class ShareonlineBiz(Account): def loadAccountInfo(self, user, req): src = req.load("http://www.share-online.biz/members.php?setlang=en") - validuntil = re.search(r'<td align="left"><b>Package Expire Date:</b></td>\s*<td align="left">(\d+/\d+/\d+)</td>', src).group(1) - validuntil = int(mktime(strptime(validuntil, "%m/%d/%y"))) + validuntil = re.search(r'<td align="left"><b>Package Expire Date:</b></td>\s*<td align="left">(\d+/\d+/\d+)</td>', src) + if validuntil: + validuntil = int(mktime(strptime(validuntil.group(1), "%m/%d/%y"))) + else: + validuntil = -1 tmp = {"validuntil":validuntil, "trafficleft":-1} return tmp |