summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/MyfastfileCom.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/MyfastfileCom.py
parentNew plugin: Http (diff)
downloadpyload-6891502d1eb47f3db824ee25a8d978284f3e75e7.tar.xz
Multi-hoster accounts now extend MultiAccount class
Diffstat (limited to 'module/plugins/accounts/MyfastfileCom.py')
-rw-r--r--module/plugins/accounts/MyfastfileCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/MyfastfileCom.py b/module/plugins/accounts/MyfastfileCom.py
index eff112a2f..87ed00bca 100644
--- a/module/plugins/accounts/MyfastfileCom.py
+++ b/module/plugins/accounts/MyfastfileCom.py
@@ -2,11 +2,11 @@
import time
-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
-class MyfastfileCom(Account):
+class MyfastfileCom(MultiAccount):
__name__ = "MyfastfileCom"
__type__ = "account"
__version__ = "0.08"
@@ -24,7 +24,7 @@ class MyfastfileCom(Account):
def grab_hosters(self, user, password, data):
json_data = self.load("http://myfastfile.com/api.php", get={'hosts': ""})
self.log_debug("JSON data", json_data)
- json_data = json_loads(json_data)
+ json_data = json.loads(json_data)
return json_data['hosts']
@@ -44,6 +44,6 @@ class MyfastfileCom(Account):
self.log_debug("JSON data: " + html)
- self.json_data = json_loads(html)
+ self.json_data = json.loads(html)
if self.json_data['status'] != 'ok':
self.fail_login(_("Invalid username or password"))