summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/StahnuTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:15:58 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:15:58 +0200
commit29de13dc5098cc9214f3f8f111da140a22e3e2ff (patch)
treeddf95710cbc7ee67da3457b38a1e7937fda4ef21 /module/plugins/accounts/StahnuTo.py
parentFix error method (diff)
downloadpyload-29de13dc5098cc9214f3f8f111da140a22e3e2ff.tar.xz
Use parseTraffic instead parseFileSize in accounts
Diffstat (limited to 'module/plugins/accounts/StahnuTo.py')
-rw-r--r--module/plugins/accounts/StahnuTo.py5
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}