summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/SimplyPremiumCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 17:12:53 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 17:12:53 +0200
commit6891502d1eb47f3db824ee25a8d978284f3e75e7 (patch)
treee6f530c6a3dab287ef9144bdeee527d50a84c2dd /module/plugins/accounts/SimplyPremiumCom.py
parentNew plugin: Http (diff)
downloadpyload-6891502d1eb47f3db824ee25a8d978284f3e75e7.tar.xz
Multi-hoster accounts now extend MultiAccount class
Diffstat (limited to 'module/plugins/accounts/SimplyPremiumCom.py')
-rw-r--r--module/plugins/accounts/SimplyPremiumCom.py10
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