diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-20 18:43:15 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 22:46:01 +0100 |
commit | 5deded62d94c04be64d34f6b67d07803eea9b6bf (patch) | |
tree | a33f82a6208b3a922bf5e1883f134a1fb86a9217 /module/plugins/accounts/RapidgatorNet.py | |
parent | Update addons (diff) | |
download | pyload-5deded62d94c04be64d34f6b67d07803eea9b6bf.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/accounts/RapidgatorNet.py')
-rw-r--r-- | module/plugins/accounts/RapidgatorNet.py | 22 |
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) |