summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapidgatorNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/RapidgatorNet.py')
-rw-r--r--module/plugins/accounts/RapidgatorNet.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py
index e1f194afe..3057fb34c 100644
--- a/module/plugins/accounts/RapidgatorNet.py
+++ b/module/plugins/accounts/RapidgatorNet.py
@@ -34,17 +34,17 @@ class RapidgatorNet(Account):
self.log_debug("API:USERINFO", html)
- jso = json.loads(html)
+ json_data = json.loads(html)
- if jso['response_status'] is 200:
- if "reset_in" in jso['response']:
- self._schedule_refresh(user, jso['response']['reset_in'])
+ if json_data['response_status'] is 200:
+ if "reset_in" in json_data['response']:
+ self._schedule_refresh(user, json_data['response']['reset_in'])
- validuntil = jso['response']['expire_date']
- trafficleft = float(jso['response']['traffic_left']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10
+ validuntil = json_data['response']['expire_date']
+ trafficleft = float(json_data['response']['traffic_left']) / 1024 #@TODO: Remove `/ 1024` in 0.4.10
premium = True
else:
- self.log_error(jso['response_details'])
+ self.log_error(json_data['response_details'])
except Exception, e:
self.log_error(e, trace=True)
@@ -63,13 +63,13 @@ class RapidgatorNet(Account):
self.log_debug("API:LOGIN", html)
- jso = json.loads(html)
+ json_data = json.loads(html)
- if jso['response_status'] is 200:
- data['sid'] = str(jso['response']['session_id'])
+ if json_data['response_status'] is 200:
+ data['sid'] = str(json_data['response']['session_id'])
return
else:
- self.log_error(jso['response_details'])
+ self.log_error(json_data['response_details'])
except Exception, e:
self.log_error(e, trace=True)