diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-17 01:21:41 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-17 01:21:41 +0200 |
commit | 20226f8cc5889efbefa61209e1adf6184d42cd00 (patch) | |
tree | 8f01af2c23465432f83481b656ed8c2743cb872a /pyload/plugin/account/SmoozedCom.py | |
parent | Spare code cosmetics (2) (diff) | |
download | pyload-20226f8cc5889efbefa61209e1adf6184d42cd00.tar.xz |
Spare code cosmetics (3)
Diffstat (limited to 'pyload/plugin/account/SmoozedCom.py')
-rw-r--r-- | pyload/plugin/account/SmoozedCom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugin/account/SmoozedCom.py b/pyload/plugin/account/SmoozedCom.py index 7f4beb7d9..ae247b2b0 100644 --- a/pyload/plugin/account/SmoozedCom.py +++ b/pyload/plugin/account/SmoozedCom.py @@ -46,10 +46,10 @@ class SmoozedCom(Account): 'premium' : False} else: # Parse account info - info = {'validuntil' : float(status["data"]["user"]["user_premium"]), - 'trafficleft': max(0, status["data"]["traffic"][1] - status["data"]["traffic"][0]), - 'session' : status["data"]["session_key"], - 'hosters' : [hoster["name"] for hoster in status["data"]["hoster"]]} + info = {'validuntil' : float(status['data']['user']['user_premium']), + 'trafficleft': max(0, status['data']['traffic'][1] - status['data']['traffic'][0]), + 'session' : status['data']['session_key'], + 'hosters' : [hoster['name'] for hoster in status['data']['hoster']]} if info['validuntil'] < time.time(): info['premium'] = False |