summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/addons/MultiHoster.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/addons/MultiHoster.py')
-rw-r--r--pyload/plugins/addons/MultiHoster.py8
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)