diff options
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r-- | module/plugins/accounts/SimplyPremiumCom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py index 2be8782ce..2f1b7c85e 100644 --- a/module/plugins/accounts/SimplyPremiumCom.py +++ b/module/plugins/accounts/SimplyPremiumCom.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- -from module.common.json_layer import json_loads -from module.plugins.internal.Account import Account +from module.plugins.internal.utils import json +from module.plugins.internal.MultiAccount import MultiAccount from module.plugins.internal.Plugin import set_cookie -class SimplyPremiumCom(Account): +class SimplyPremiumCom(MultiAccount): __name__ = "SimplyPremiumCom" __type__ = "account" __version__ = "0.10" @@ -22,7 +22,7 @@ class SimplyPremiumCom(Account): def grab_hosters(self, user, password, data): json_data = self.load("http://www.simply-premium.com/api/hosts.php", get={'format': "json", 'online': 1}) - json_data = json_loads(json_data) + json_data = json.loads(json_data) host_list = [element['regex'] for element in json_data['result']] @@ -38,7 +38,7 @@ class SimplyPremiumCom(Account): self.log_debug("JSON data: %s" % json_data) - json_data = json_loads(json_data) + json_data = json.loads(json_data) if 'vip' in json_data['result'] and json_data['result']['vip']: premium = True |