diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-11 19:31:02 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-11 19:31:02 +0200 |
commit | 7ccf4395b5e5e7fb8f62185653c0e9b27597f928 (patch) | |
tree | 0a6f11eb0d87b5460d993da09a7d8e12302dbe5a | |
parent | Merge pull request #1411 from chipotng/stable (diff) | |
parent | Fixed #1399 (diff) | |
download | pyload-7ccf4395b5e5e7fb8f62185653c0e9b27597f928.tar.xz |
Merge pull request #1412 from smoozed/patch-1
Fixed #1399
-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 |