diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-03 19:31:34 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-03 19:31:34 +0100 |
commit | ccadf3260e6113fc93e1f50ff8755bb0c1c7daa8 (patch) | |
tree | 2f4ec489a7ff370fddb227c986edd0db87c16b09 /module/plugins/accounts | |
parent | small bugfix (diff) | |
download | pyload-ccadf3260e6113fc93e1f50ff8755bb0c1c7daa8.tar.xz |
share-online.biz free account fix
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/ShareonlineBiz.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index c5e4477be..d872ba086 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -36,8 +36,15 @@ class ShareonlineBiz(Account): validuntil = int(mktime(strptime(validuntil.group(1), "%m/%d/%y"))) else: validuntil = -1 + + acctype = re.search(r'<td align="left" ><b>Your Package:</b></td>\s*<td align="left">\s*<b>(.*?)</b>\s*</td>', src) + if acctype: + if acctype.group(1) == "Collector account (free)": + premium = False + else: + premium = True - tmp = {"validuntil":validuntil, "trafficleft":-1} + tmp = {"validuntil": validuntil, "trafficleft": -1, "premium": premium} return tmp def login(self, user, data, req): |