summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/NoPremiumPl.py
diff options
context:
space:
mode:
authorGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 12:16:36 +0200
committerGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 12:16:36 +0200
commit0fc351436bfb4a94749899e34c46bf81a44c92c9 (patch)
treea1ac4004e87ab477eb9dd15a5ee34c662d14c586 /module/plugins/accounts/NoPremiumPl.py
parentsimplify json loads, replace crypto with hashlib (diff)
downloadpyload-0fc351436bfb4a94749899e34c46bf81a44c92c9.tar.xz
replace is_premium with direct expression
Diffstat (limited to 'module/plugins/accounts/NoPremiumPl.py')
-rw-r--r--module/plugins/accounts/NoPremiumPl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/accounts/NoPremiumPl.py b/module/plugins/accounts/NoPremiumPl.py
index 0f3b5286f..49c9b7653 100644
--- a/module/plugins/accounts/NoPremiumPl.py
+++ b/module/plugins/accounts/NoPremiumPl.py
@@ -42,9 +42,8 @@ class NoPremiumPl(Account):
premium = False
valid_untill = -1
- is_premium = "expire" in result.keys() and result["expire"] is not None
- if is_premium:
+ if "expire" in result.keys() and result["expire"] is not None:
premium = True
valid_untill = mktime(datetime.fromtimestamp(int(result["expire"])).timetuple())
traffic_left = result["balance"] * 1024