From 70cd6a9f822308a416fefb051c4bbb83e6fd37e4 Mon Sep 17 00:00:00 2001 From: mkaay Date: Thu, 17 Dec 2009 22:56:56 +0100 Subject: create only one links.txt package --- module/thread_list.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'module') diff --git a/module/thread_list.py b/module/thread_list.py index c486ad8ee..1020f9ce1 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -107,16 +107,14 @@ class Thread_List(object): if pyfile.status.type == "finished": if pyfile.plugin.props['type'] == "container": - #works(!) but adds many packs to queue - self.list.packager.removeFileFromPackage(pyfile.id, pyfile.package.data["id"]) newLinks = 0 if pyfile.plugin.links: - newPackager = self.list.packager.addNewPackage(pyfile.status.filename) for link in pyfile.plugin.links: newFile = self.list.collector.addLink(link) - self.list.packager.addFileToPackage(newPackager, self.list.collector.popFile(newFile)) + self.list.packager.addFileToPackage(pyfile.package.data["id"], self.list.collector.popFile(newFile)) newLinks += 1 - self.list.packager.pushPackage2Queue(newPackager) + self.list.packager.pushPackage2Queue(pyfile.package.data["id"]) + self.list.packager.removeFileFromPackage(pyfile.id, pyfile.package.data["id"]) if newLinks: self.parent.logger.info("Parsed link from %s: %i" % (pyfile.status.filename, newLinks)) -- cgit v1.2.3