diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-03 20:37:17 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-03 20:37:17 +0200 |
commit | 4cd2b7390dd97dc2016ab71f954f191de12f2f46 (patch) | |
tree | 774c8ae6c6e49d87034d9b697e140914b318db4d /module/plugins/accounts/OboomCom.py | |
parent | Merge pull request #1801 from Nippey/patch-1 (diff) | |
download | pyload-4cd2b7390dd97dc2016ab71f954f191de12f2f46.tar.xz |
Spare fixes (2)
Diffstat (limited to 'module/plugins/accounts/OboomCom.py')
-rw-r--r-- | module/plugins/accounts/OboomCom.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/accounts/OboomCom.py b/module/plugins/accounts/OboomCom.py index 380368b70..a792848ea 100644 --- a/module/plugins/accounts/OboomCom.py +++ b/module/plugins/accounts/OboomCom.py @@ -40,7 +40,7 @@ class OboomCom(Account): get={'auth': user, 'pass': pbkdf2})) - if not result[0] == 200: + if result[0] != 200: self.log_warning(_("Failed to log in: %s") % result[1]) self.login_fail() @@ -52,10 +52,7 @@ class OboomCom(Account): userData = account_data['user'] - if userData['premium'] == "null": - premium = False - else: - premium = True + premium = userData['premium'] != "null" if userData['premium_unix'] == "null": validUntil = -1 @@ -65,7 +62,7 @@ class OboomCom(Account): traffic = userData['traffic'] trafficLeft = traffic['current'] / 1024 #@TODO: Remove `/ 1024` in 0.4.10 - maxTraffic = traffic['max'] / 1024 #@TODO: Remove `/ 1024` in 0.4.10 + maxTraffic = traffic['max'] / 1024 #@TODO: Remove `/ 1024` in 0.4.10 session = account_data['session'] |