summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/FastixRu.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 17:01:39 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 17:01:39 +0200
commit84169f4862fa257e0a8a47e5f3578e9ec97ccf4f (patch)
treedd18f97f02637f667b803796f2b456836204a5d5 /pyload/plugin/account/FastixRu.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-84169f4862fa257e0a8a47e5f3578e9ec97ccf4f.tar.xz
Plugins cleanup
Diffstat (limited to 'pyload/plugin/account/FastixRu.py')
-rw-r--r--pyload/plugin/account/FastixRu.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyload/plugin/account/FastixRu.py b/pyload/plugin/account/FastixRu.py
index fbb635437..ead4e63aa 100644
--- a/pyload/plugin/account/FastixRu.py
+++ b/pyload/plugin/account/FastixRu.py
@@ -18,13 +18,14 @@ class FastixRu(Account):
data = self.getAccountData(user)
html = json_loads(req.load("http://fastix.ru/api_v2/", get={'apikey': data['api'], 'sub': "getaccountdetails"}))
- points = html['points']
- kb = float(points) * 1024 ** 2 / 1000
+ points = html['points']
+ trafficleft = float(points) * 1024 ** 2 / 1000
if points > 0:
- account_info = {"validuntil": -1, "trafficleft": kb}
+ account_info = {"validuntil": -1, "trafficleft": trafficleft}
else:
account_info = {"validuntil": None, "trafficleft": None, "premium": False}
+
return account_info