summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/accounts/FastixRu.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/accounts/FastixRu.py')
-rw-r--r--pyload/plugins/accounts/FastixRu.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/pyload/plugins/accounts/FastixRu.py b/pyload/plugins/accounts/FastixRu.py
index 3e1896e44..34d88dd25 100644
--- a/pyload/plugins/accounts/FastixRu.py
+++ b/pyload/plugins/accounts/FastixRu.py
@@ -1,8 +1,8 @@
-from module.plugins.Account import Account
-from module.common.json_layer import json_loads
+from pyload.plugins.MultiHoster import MultiHoster
+from pyload.utils import json_loads
-class FastixRu(Account):
+class FastixRu(MultiHoster):
__name__ = "FastixRu"
__version__ = "0.02"
__type__ = "account"
@@ -30,3 +30,10 @@ class FastixRu(Account):
data["api"] = api
if "error_code" in page:
self.wrongPassword()
+
+ def loadHosterList(self, req):
+ page = req.load(
+ "http://fastix.ru/api_v2/?apikey=5182964c3f8f9a7f0b00000a_kelmFB4n1IrnCDYuIFn2y&sub=allowed_sources")
+ host_list = json_loads(page)
+ host_list = host_list['allow']
+ return host_list