summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/SmoozedCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 16:33:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 16:33:20 +0200
commit7be36a47327e273545673510a79a235e271cc448 (patch)
treeee3cb38cbf619359132d4412189dbd2d2e8567bb /pyload/plugin/account/SmoozedCom.py
parentOther import fixes (3) (diff)
parent[SmoozedCom] Fix https://github.com/pyload/pyload/issues/1399 (2) (diff)
downloadpyload-7be36a47327e273545673510a79a235e271cc448.tar.xz
Merge branch 'stable' into 0.4.10
Conflicts: pyload/plugin/account/ShareonlineBiz.py pyload/plugin/account/SmoozedCom.py pyload/plugin/hoster/SmoozedCom.py
Diffstat (limited to 'pyload/plugin/account/SmoozedCom.py')
-rw-r--r--pyload/plugin/account/SmoozedCom.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pyload/plugin/account/SmoozedCom.py b/pyload/plugin/account/SmoozedCom.py
index f24799caf..63381c20b 100644
--- a/pyload/plugin/account/SmoozedCom.py
+++ b/pyload/plugin/account/SmoozedCom.py
@@ -28,7 +28,7 @@ from pyload.plugin.Account import Account
class SmoozedCom(Account):
__name = "SmoozedCom"
__type = "account"
- __version = "0.04"
+ __version = "0.05"
__description = """Smoozed.com account plugin"""
__license = "GPLv3"
@@ -36,7 +36,6 @@ class SmoozedCom(Account):
def loadAccountInfo(self, user, req):
- # Get user data from premiumize.me
status = self.getAccountStatus(user, req)
self.logDebug(status)
@@ -53,7 +52,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