summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-09-06 19:45:03 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-09-06 19:45:03 +0200
commit2d9f39522b550008a3d5d3162136a712a6e9220f (patch)
tree54d9041e715adad66aa453c844dbca5640b42bc5 /module
parentmissing file -.- (diff)
downloadpyload-2d9f39522b550008a3d5d3162136a712a6e9220f.tar.xz
recheck fix, account update fix
Diffstat (limited to 'module')
-rw-r--r--module/AccountManager.py4
-rw-r--r--module/FileDatabase.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/module/AccountManager.py b/module/AccountManager.py
index b5c89dffc..9234f367d 100644
--- a/module/AccountManager.py
+++ b/module/AccountManager.py
@@ -140,7 +140,7 @@ class AccountManager():
#----------------------------------------------------------------------
def updateAccount(self, plugin , user, password, options):
"""add or update account"""
-
+ print accounts
if self.accounts.has_key(plugin):
p = self.getAccountPlugin(plugin)
p.updateAccounts(user, password, options)
@@ -152,6 +152,7 @@ class AccountManager():
self.accounts[plugin][user] = {"password": password, "options": options}
self.saveAccounts()
+ self.getAccountInfos(force=True)
#----------------------------------------------------------------------
def removeAccount(self, plugin, user):
@@ -165,6 +166,7 @@ class AccountManager():
del self.accounts[plugin][user]
self.saveAccounts()
+ self.getAccountInfos(force=True)
def getAccountInfos(self, force=False):
if not self.cachedAccountInfo:
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index d4f28d887..9d52396ae 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -462,7 +462,7 @@ class FileHandler:
urls = []
for pyfile in data.itervalues():
- if pyfile.status not in (0, 12, 13):
+ if pyfile["status"] not in (0, 12, 13):
urls.append((pyfile["url"], pyfile["plugin"]))
self.core.threadManager.createInfoThread(urls, pid)