diff options
| author | 2014-12-20 14:24:13 +0100 | |
|---|---|---|
| committer | 2014-12-20 14:24:13 +0100 | |
| commit | 6325eda4e8c142edd11c747f7a9d4a3fa975c494 (patch) | |
| tree | 589819bb5e5ce441ea8f1109c8357c086816ed69 /module/plugins/hoster/BasePlugin.py | |
| parent | [AlldebridCom] Syntax fixup (diff) | |
| download | pyload-6325eda4e8c142edd11c747f7a9d4a3fa975c494.tar.xz | |
Fix password retrieving in some plugins
Diffstat (limited to 'module/plugins/hoster/BasePlugin.py')
| -rw-r--r-- | module/plugins/hoster/BasePlugin.py | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py index 7b59303ef..d0d8e7cc8 100644 --- a/module/plugins/hoster/BasePlugin.py +++ b/module/plugins/hoster/BasePlugin.py @@ -13,7 +13,7 @@ from module.plugins.Hoster import Hoster  class BasePlugin(Hoster):      __name__    = "BasePlugin"      __type__    = "hoster" -    __version__ = "0.25" +    __version__ = "0.26"      __pattern__ = r'^unmatchable$' @@ -60,10 +60,9 @@ class BasePlugin(Hoster):                          self.logDebug("Logging on to %s" % server)                          self.req.addAuth(account.accounts[server]['password'])                      else: -                        for pwd in self.getPassword().splitlines(): -                            if ":" in pwd: -                                self.req.addAuth(pwd.strip()) -                                break +                        pwd = self.getPassword() +                        if ':' in pwd: +                            self.req.addAuth(pwd)                          else:                              self.fail(_("Authorization required"))                  else: | 
