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