diff options
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r-- | module/plugins/accounts/SimplyPremiumCom.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py index 2be8782ce..bd86f024c 100644 --- a/module/plugins/accounts/SimplyPremiumCom.py +++ b/module/plugins/accounts/SimplyPremiumCom.py @@ -1,14 +1,14 @@ # -*- 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" + __version__ = "0.11" __status__ = "testing" __config__ = [("mh_mode" , "all;listed;unlisted", "Filter hosters to use" , "all"), @@ -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 |