From d06daeb274da6d7886ab96ba639e18cebb67cc6f Mon Sep 17 00:00:00 2001 From: TodsDeath Date: Wed, 29 Jul 2015 10:44:18 +0200 Subject: 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}} --- module/plugins/internal/Account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/internal') 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): -- cgit v1.2.3