summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 11:47:23 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 11:47:23 +0200
commit46bac1946a3d3f8346517e9a42da457646074c44 (patch)
tree2b572a2af0852bbb03c2cd372457772d8ee5a3ae /pyLoadCore.py
parentrenaming fix, get job by priority (diff)
downloadpyload-46bac1946a3d3f8346517e9a42da457646074c44.tar.xz
account fixes
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 0f6cc4268..94ffd90a4 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -616,20 +616,14 @@ class ServerMethods():
data.extend(p.getAllAccounts())
return data
- def update_account(self, plugin, account, password):
+ def update_account(self, plugin, account, password, options=[]):
""" create and update account """
plugins = self.core.pluginManager.getAccountPlugins()
- for p in plugins:
- if p.__name__ == plugin:
- p.updateAccount(account, password)
- break
+ self.core.pluginManager.updateAccount(plugin, account, password, options)
- def remove_account(self, plugin, account, password):
+ def remove_account(self, plugin, account):
plugins = self.core.pluginManager.getAccountPlugins()
- for p in plugins:
- if p.__name__ == plugin:
- p.removeAccount(account, password)
- break
+ self.core.pluginManager.removeAccount(plugin, account)
def set_priority(self, id, priority):
p = self.core.files.getPackage(id)