diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-08 17:38:35 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-08 17:38:35 +0200 |
commit | 52f6599748ef61219112111dc5db71f3342b076d (patch) | |
tree | e3627ded64b7e98493ca1ec7bd182aaa1774252e /pyload/plugins/addons/MultiHoster.py | |
parent | MultiHosters: moved settings to addon plugins. (diff) | |
download | pyload-52f6599748ef61219112111dc5db71f3342b076d.tar.xz |
adapted account api to multi user, fixed http referer bug
Diffstat (limited to 'pyload/plugins/addons/MultiHoster.py')
-rw-r--r-- | pyload/plugins/addons/MultiHoster.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugins/addons/MultiHoster.py b/pyload/plugins/addons/MultiHoster.py index 329a87e4a..446dfe922 100644 --- a/pyload/plugins/addons/MultiHoster.py +++ b/pyload/plugins/addons/MultiHoster.py @@ -72,18 +72,18 @@ class MultiHoster(Addon): @AddEventListener("account:deleted") - def refreshAccounts(self, plugin=None, user=None): + def refreshAccounts(self, plugin=None, loginname=None): self.logDebug("Re-checking accounts") self.plugins = {} - for name, account in self.core.accountManager.iterAccounts(): + for plugin, account in self.core.accountManager.iterAccounts(): if isinstance(account, MultiHosterAccount) and account.isUsable(): self.addHoster(account) @AddEventListener("account:updated") - def refreshAccount(self, plugin, user): + def refreshAccount(self, plugin, loginname): - account = self.core.accountManager.getAccount(plugin, user) + account = self.core.accountManager.getAccount(plugin, loginname) if isinstance(account, MultiHosterAccount) and account.isUsable(): self.addHoster(account) |