summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 13:50:58 +0200
committerGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 13:50:58 +0200
commitd0eea8f9baced6fd882e396e019940cff5fcf777 (patch)
tree404e60aad9f3e6a38295578547709b66dd9844c5
parentnewline fix (diff)
downloadpyload-d0eea8f9baced6fd882e396e019940cff5fcf777.tar.xz
replace is_premium with direct expression, remove explicit "is not None"
-rw-r--r--module/plugins/accounts/RapideoPl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/accounts/RapideoPl.py b/module/plugins/accounts/RapideoPl.py
index cbec9809a..f35d23827 100644
--- a/module/plugins/accounts/RapideoPl.py
+++ b/module/plugins/accounts/RapideoPl.py
@@ -41,8 +41,7 @@ class RapideoPl(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"]:
premium = True
valid_untill = mktime(datetime.fromtimestamp(int(result["expire"])).timetuple())