diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-25 20:37:32 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-25 20:37:32 +0200 |
commit | efee017fb2b3a4cac09233cd01d816d9100a5db5 (patch) | |
tree | 58635208703ae98e2359e160860f7ea7af68445f /module/plugins/AccountManager.py | |
parent | RealdebridCom plugin (diff) | |
download | pyload-efee017fb2b3a4cac09233cd01d816d9100a5db5.tar.xz |
rehost plugin, fixed some account management issues
Diffstat (limited to 'module/plugins/AccountManager.py')
-rw-r--r-- | module/plugins/AccountManager.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/AccountManager.py b/module/plugins/AccountManager.py index 7299ff643..e4c858a43 100644 --- a/module/plugins/AccountManager.py +++ b/module/plugins/AccountManager.py @@ -143,12 +143,11 @@ class AccountManager(): """add or update account""" if self.accounts.has_key(plugin): p = self.getAccountPlugin(plugin) - p.updateAccounts(user, password, options) + updated = p.updateAccounts(user, password, options) #since accounts is a ref in plugin self.accounts doesnt need to be updated here self.saveAccounts() - p.getAllAccounts(force=True) - self.core.scheduler.addJob(0, self.core.accountManager.getAccountInfos) + if updated: p.scheduleRefresh(user, force=False) #---------------------------------------------------------------------- def removeAccount(self, plugin, user): @@ -159,8 +158,6 @@ class AccountManager(): p.removeAccount(user) self.saveAccounts() - p.getAllAccounts(force=True) - self.core.scheduler.addJob(0, self.core.accountManager.getAccountInfos) def getAccountInfos(self, force=True, refresh=False): |