diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:15:58 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:15:58 +0200 |
commit | 29de13dc5098cc9214f3f8f111da140a22e3e2ff (patch) | |
tree | ddf95710cbc7ee67da3457b38a1e7937fda4ef21 /module/plugins/accounts/StahnuTo.py | |
parent | Fix error method (diff) | |
download | pyload-29de13dc5098cc9214f3f8f111da140a22e3e2ff.tar.xz |
Use parseTraffic instead parseFileSize in accounts
Diffstat (limited to 'module/plugins/accounts/StahnuTo.py')
-rw-r--r-- | module/plugins/accounts/StahnuTo.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/accounts/StahnuTo.py b/module/plugins/accounts/StahnuTo.py index 7b32ae842..b254e0fac 100644 --- a/module/plugins/accounts/StahnuTo.py +++ b/module/plugins/accounts/StahnuTo.py @@ -3,13 +3,12 @@ import re from module.plugins.Account import Account -from module.utils import parseFileSize class StahnuTo(Account): __name__ = "StahnuTo" __type__ = "account" - __version__ = "0.02" + __version__ = "0.03" __description__ = """StahnuTo account plugin""" __license__ = "GPLv3" @@ -20,7 +19,7 @@ class StahnuTo(Account): html = req.load("http://www.stahnu.to/") m = re.search(r'>VIP: (\d+.*)<', html) - trafficleft = parseFileSize(m.group(1)) * 1024 if m else 0 + trafficleft = self.parseTraffic(m.group(1)) * 1024 if m else 0 return {"premium": trafficleft > (512 * 1024), "trafficleft": trafficleft, "validuntil": -1} |