diff options
| -rw-r--r-- | module/plugins/accounts/Fastix.py | 3 | ||||
| -rw-r--r-- | module/plugins/hoster/Fastix.py | 6 | 
2 files changed, 3 insertions, 6 deletions
| diff --git a/module/plugins/accounts/Fastix.py b/module/plugins/accounts/Fastix.py index c52961843..862815a84 100644 --- a/module/plugins/accounts/Fastix.py +++ b/module/plugins/accounts/Fastix.py @@ -28,9 +28,6 @@ class Fastix(Account):          api = json_loads(page)
          api = api['apikey']
          data["api"] = api
 -        out_file = open("fastix_api.txt","w")
 -        out_file.write(api)
 -        out_file.close()
          if "error_code" in page:
              self.wrongPassword()
              
\ No newline at end of file diff --git a/module/plugins/hoster/Fastix.py b/module/plugins/hoster/Fastix.py index 330ce78fc..c16465d92 100644 --- a/module/plugins/hoster/Fastix.py +++ b/module/plugins/hoster/Fastix.py @@ -8,6 +8,7 @@ from module.common.json_layer import json_loads  from module.utils import parseFileSize
 +
  class Fastix(Hoster):
      __name__ = "Fastix"
      __version__ = "0.02"
 @@ -41,9 +42,8 @@ class Fastix(Hoster):          if re.match(self.__pattern__, pyfile.url):
              new_url = pyfile.url
          else:
 -            in_file = open("fastix_api.txt","r")
 -            api_key = in_file.read()
 -            in_file.close()
 +            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)
              data = json_loads(page)
 | 
