diff options
-rwxr-xr-x | pyLoadCore.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 7218586e0..075b2e2f9 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -157,13 +157,16 @@ class Core(object): txt = open(url_list, 'r') new_links = 0 links = txt.readlines() + pid = self.file_list.packager.addNewPackage(package_name="links.txt") for link in links: if link != "\n": - self.file_list.collector.addLink(link) + lid = self.file_list.collector.addLink(link) + self.file_list.packager.addFileToPackage(pid, fl.collector.popFile(lid)) new_links += 1 txt.close() - + + self.file_list.packager.pushPackage2Queue(pid) self.file_list.save() if new_links: self.logger.info("Parsed link from %s: %i" % (url_list, new_links)) |