summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar stickell <l.stickell@yahoo.it> 2015-02-12 20:33:56 +0100
committerGravatar stickell <l.stickell@yahoo.it> 2015-02-12 20:33:56 +0100
commit9f74837c906251919f5314039af5cf0a658df65b (patch)
treee4db4f9e1e5837abb9beb44f4932ba712685f08d /module
parent[MystoreTo] Cleanup (diff)
downloadpyload-9f74837c906251919f5314039af5cf0a658df65b.tar.xz
[Linksnappy] Fixed syntax error
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/LinksnappyCom.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py
index dff28a055..97e368285 100644
--- a/module/plugins/accounts/LinksnappyCom.py
+++ b/module/plugins/accounts/LinksnappyCom.py
@@ -9,8 +9,7 @@ from module.common.json_layer import json_loads
class LinksnappyCom(Account):
__name__ = "LinksnappyCom"
__type__ = "account"
- __version__ = "0.04"
-
+ __version__ = "0.05"
__description__ = """Linksnappy.com account plugin"""
__license__ = "GPLv3"
__authors__ = [("stickell", "l.stickell@yahoo.it")]
@@ -42,7 +41,7 @@ class LinksnappyCom(Account):
if 'trafficleft' not in j['return'] or isinstance(j['return']['trafficleft'], str):
trafficleft = -1
else:
- trafficleft = self.parseTraffic(float(j['return']['trafficleft'] + "MB")
+ trafficleft = self.parseTraffic("%d MB" % j['return']['trafficleft'])
return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft}