diff options
author | smoozed <github@smoozed.com> | 2015-05-11 17:43:10 +0200 |
---|---|---|
committer | smoozed <github@smoozed.com> | 2015-05-11 17:43:10 +0200 |
commit | 87164856d5d190c830609e296f47fde6820d023b (patch) | |
tree | 98c454a475416db7ec09b067a223a85640509c5b | |
parent | [ClickAndLoad] Version up (diff) | |
download | pyload-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.py | 6 |
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 |