diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-13 18:48:01 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-13 18:48:01 +0100 |
commit | b0ab80452769af1482e679db93abd407c608a7f6 (patch) | |
tree | 64ea3210a847b810e575cc28649b2f519671e002 /module/database/FileDatabase.py | |
parent | fixed login issue (diff) | |
download | pyload-b0ab80452769af1482e679db93abd407c608a7f6.tar.xz |
cnl fix
Diffstat (limited to 'module/database/FileDatabase.py')
-rw-r--r-- | module/database/FileDatabase.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py index c539bcaf6..528bf666d 100644 --- a/module/database/FileDatabase.py +++ b/module/database/FileDatabase.py @@ -59,6 +59,7 @@ class FileHandler: self.jobCache = {} self.lock = RLock() #@TODO should be a Lock w/o R + #self.lock._Verbose__verbose = True self.filecount = -1 # if an invalid value is set get current value from db self.unchanged = False #determines if any changes was made since last call @@ -473,10 +474,8 @@ class FileHandler: def updateFileInfo(self, data, pid): """ updates file info (name, size, status, url)""" ids = self.db.updateLinkInfo(data) - - for fid in ids: - e = UpdateEvent("file", fid, "collector" if not self.getFile(fid).package().queue else "queue") - self.core.pullManager.addEvent(e) + e = UpdateEvent("pack", pid, "collector" if not self.getPackage(pid).queue else "queue") + self.core.pullManager.addEvent(e) def checkPackageFinished(self, pyfile): """ checks if package is finished and calls hookmanager """ |