diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 00:27:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 00:27:18 +0100 |
commit | 67587fbe0335cacfde28a86ba729b9d567ce1da7 (patch) | |
tree | 090ea3a41894437ce619fe06304508479ace6ab6 /module/plugins/hoster/FastixRu.py | |
parent | Plugin code cosmetics (2) (diff) | |
download | pyload-67587fbe0335cacfde28a86ba729b9d567ce1da7.tar.xz |
Plugin code cosmetics (3)
Diffstat (limited to 'module/plugins/hoster/FastixRu.py')
-rw-r--r-- | module/plugins/hoster/FastixRu.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/hoster/FastixRu.py b/module/plugins/hoster/FastixRu.py index 59b4bd24f..1e47638ea 100644 --- a/module/plugins/hoster/FastixRu.py +++ b/module/plugins/hoster/FastixRu.py @@ -46,10 +46,13 @@ class FastixRu(Hoster): self.logDebug("Old URL: %s" % pyfile.url) api_key = self.account.getAccountData(self.user) api_key = api_key['api'] - url = "http://fastix.ru/api_v2/?apikey=%s&sub=getdirectlink&link=%s" % (api_key, pyfile.url) - page = self.load(url) + + page = self.load("http://fastix.ru/api_v2/", + get={'apikey': api_key, 'sub': "getdirectlink", 'link': pyfile.url}) data = json_loads(page) + self.logDebug("Json data", data) + if "error\":true" in page: self.offline() else: |