summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar smoozed <github@smoozed.com> 2015-05-11 17:43:10 +0200
committerGravatar smoozed <github@smoozed.com> 2015-05-11 17:43:10 +0200
commit87164856d5d190c830609e296f47fde6820d023b (patch)
tree98c454a475416db7ec09b067a223a85640509c5b
parent[ClickAndLoad] Version up (diff)
downloadpyload-87164856d5d190c830609e296f47fde6820d023b.tar.xz
Fixed #1399
When the account is not premium, check if there is trial time left.
-rw-r--r--module/plugins/accounts/SmoozedCom.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/accounts/SmoozedCom.py b/module/plugins/accounts/SmoozedCom.py
index 56cd1864a..8fb997b54 100644
--- a/module/plugins/accounts/SmoozedCom.py
+++ b/module/plugins/accounts/SmoozedCom.py
@@ -34,7 +34,6 @@ class SmoozedCom(Account):
def loadAccountInfo(self, user, req):
- # Get user data from premiumize.me
status = self.getAccountStatus(user, req)
self.logDebug(status)
@@ -51,7 +50,10 @@ class SmoozedCom(Account):
'hosters' : [hoster["name"] for hoster in status["data"]["hoster"]]}
if info['validuntil'] < time.time():
- info['premium'] = False
+ if float(status["data"]["user"].get("user_trial", 0)) > time.time():
+ info['premium'] = True
+ else:
+ info['premium'] = False
else:
info['premium'] = True