diff options
author | Stefano <l.stickell@yahoo.it> | 2013-07-30 21:35:28 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-07-30 21:35:28 +0200 |
commit | a77153c34be3d230d3e80153e57cfef933968ed9 (patch) | |
tree | a05b5d67b1d338ab6ed98db1b2ea3f443c0fbcfa /pyload/plugins/accounts/FastixRu.py | |
parent | Putlocker: allow multiDL and chunked downloads even in free downloads (diff) | |
download | pyload-a77153c34be3d230d3e80153e57cfef933968ed9.tar.xz |
Adapted 6 multi hoster plugins
Diffstat (limited to 'pyload/plugins/accounts/FastixRu.py')
-rw-r--r-- | pyload/plugins/accounts/FastixRu.py | 13 |
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 |