diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/ThreadManager.py | 7 |
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: |