summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/LinksnappyCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-02 04:22:19 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-02 04:22:19 +0200
commitab695d17397e101447102877cdd282d825051035 (patch)
tree28f9f62ffc57888b76ca32540dbf5af3a4cfc8d0 /module/plugins/accounts/LinksnappyCom.py
parent[UptoboxCom] Fix https://github.com/pyload/pyload/issues/1530 and https://git... (diff)
downloadpyload-ab695d17397e101447102877cdd282d825051035.tar.xz
[Account] Improve parse_traffic method + code cosmetics
Diffstat (limited to 'module/plugins/accounts/LinksnappyCom.py')
-rw-r--r--module/plugins/accounts/LinksnappyCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py
index cf69791e7..6953f311c 100644
--- a/module/plugins/accounts/LinksnappyCom.py
+++ b/module/plugins/accounts/LinksnappyCom.py
@@ -9,7 +9,7 @@ from module.common.json_layer import json_loads
class LinksnappyCom(Account):
__name__ = "LinksnappyCom"
__type__ = "account"
- __version__ = "0.09"
+ __version__ = "0.10"
__status__ = "testing"
__config__ = [("mh_mode" , "all;listed;unlisted", "Filter hosters to use" , "all"),
@@ -55,7 +55,7 @@ class LinksnappyCom(Account):
if 'trafficleft' not in j['return'] or isinstance(j['return']['trafficleft'], str):
trafficleft = -1
else:
- trafficleft = self.parse_traffic("%d MB" % j['return']['trafficleft'])
+ trafficleft = self.parse_traffic(j['return']['trafficleft'], "MB")
return {'premium' : True ,
'validuntil' : validuntil ,