diff options
| author | 2015-01-08 23:31:33 +0100 | |
|---|---|---|
| committer | 2015-01-08 23:31:33 +0100 | |
| commit | 36e60a23497ae05736c24fed2f4ce936fb61f744 (patch) | |
| tree | d743ace8e6c032cccb524cbb8474263d9d7bd4e1 /module/plugins/accounts/FilecloudIo.py | |
| parent | "New Year" Update: internal plugins (diff) | |
| download | pyload-36e60a23497ae05736c24fed2f4ce936fb61f744.tar.xz | |
"New Year" Update: account plugins
Diffstat (limited to 'module/plugins/accounts/FilecloudIo.py')
| -rw-r--r-- | module/plugins/accounts/FilecloudIo.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py index d20f756f3..8ca55b1bc 100644 --- a/module/plugins/accounts/FilecloudIo.py +++ b/module/plugins/accounts/FilecloudIo.py @@ -7,7 +7,7 @@ from module.common.json_layer import json_loads  class FilecloudIo(Account):      __name__    = "FilecloudIo"      __type__    = "account" -    __version__ = "0.03" +    __version__ = "0.04"      __description__ = """FilecloudIo account plugin"""      __license__     = "GPLv3" @@ -19,7 +19,7 @@ class FilecloudIo(Account):          # It looks like the first API request always fails, so we retry 5 times, it should work on the second try          for _i in xrange(5):              rep = req.load("https://secure.filecloud.io/api-fetch_apikey.api", -                           post={"username": user, "password": self.accounts[user]['password']}) +                           post={"username": user, "password": self.getAccountData(user)['password']})              rep = json_loads(rep)              if rep['status'] == 'ok':                  break @@ -55,5 +55,5 @@ class FilecloudIo(Account):                          post=self.form_data,                          multipart=True) -        self.logged_in = True if "you have successfully logged in - filecloud.io" in html else False -        self.form_data = {} +        if "you have successfully logged in" not in html: +            self.wrongPassword() | 
