summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/FastixRu.py
diff options
context:
space:
mode:
authorGravatar ardi69 <armin@diedering.de> 2015-04-16 22:33:28 +0200
committerGravatar ardi69 <armin@diedering.de> 2015-04-16 22:33:28 +0200
commit21c2ac71d045ae50a705d8ab0ac1e960d462e001 (patch)
tree896ff1eaae9151d83be150735c96a37a61d2d038 /pyload/plugin/account/FastixRu.py
parentfixed: more typos (diff)
parentMerge pull request #5 from ardi69/0.4.10 (diff)
downloadpyload-21c2ac71d045ae50a705d8ab0ac1e960d462e001.tar.xz
Merge pull request #2 from vuolter/0.4.10
merge from vuolter
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