summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar TodsDeath <todsdeath@gmx-topmail.de> 2015-07-29 10:44:18 +0200
committerGravatar TodsDeath <todsdeath@gmx-topmail.de> 2015-07-29 10:44:18 +0200
commitd06daeb274da6d7886ab96ba639e18cebb67cc6f (patch)
treed4b39ba73b4f5898f5360bee4c085787601d3392 /module/plugins/internal
parentFix http://forum.pyload.org/viewtopic.php?f=12&t=4419 (diff)
downloadpyload-d06daeb274da6d7886ab96ba639e18cebb67cc6f.tar.xz
Update Account.py
the needed premium key is not directly in info, but in the sub-directory 'data': {'data': {'login': '***', 'maxtraffic': None, 'options': {'limitdl': ['0']}, 'password': '**********', 'premium': True, 'timestamp': 1438159062.570853, 'trafficleft': -1, 'type': 'RealdebridCom', 'valid': True, 'validuntil': 1450976583.0}, 'login': {'password': '**********', 'timestamp': 1438159044.071365, 'valid': True}}
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/Account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index 3084f02c7..55ef6c5f9 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -232,7 +232,7 @@ class Account(Plugin):
return False
info = self.get_info(user, reload)
- return info['premium'] if info and 'premium' in info else False
+ return info['data']['premium'] if info and 'data' in info and 'premium' in info['data'] else False
def _parse_info(self, user):