summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-06-16 21:16:37 +0200
committerGravatar Jeix <devnull@localhost> 2010-06-16 21:16:37 +0200
commit99aba5bf50874a1040964d69e08111cb2707d3c7 (patch)
tree59909f55e2d8e103ab3bbb76f75b186b40dd72c0
parentextended LinkList plugin. Now it's possible to add comments, packages and lin... (diff)
downloadpyload-99aba5bf50874a1040964d69e08111cb2707d3c7.tar.xz
next try to fix the fix
-rw-r--r--module/ThreadManager.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index b6a6f3543..7a8802d8f 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -157,15 +157,16 @@ class ThreadManager(Thread):
for link in links:
newFile = self.list.collector.addLink(link)
self.list.packager.addFileToPackage(pid, self.list.collector.popFile(newFile))
+ self.list.packager.pushPackage2Queue(pid)
newLinks += 1
else:
for link in pyfile.plugin.links:
newFile = self.list.collector.addLink(link)
- pid = pyfile.package.data["id"]
+ pid = pyfile.package.data["id"]
self.list.packager.addFileToPackage(pyfile.package.data["id"], self.list.collector.popFile(newFile))
+ self.list.packager.pushPackage2Queue(pid)
newLinks += 1
-
- if pyfile.package.data["id"] or pid: self.list.packager.pushPackage2Queue(pyfile.package.data["id"] or pid)
+
self.list.packager.removeFileFromPackage(pyfile.id, pyfile.package.data["id"])
if newLinks: