diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-03 18:15:21 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-03 18:15:21 +0100 |
commit | 21e4a31c9da1d0f6bcd8672a3df8c90b64f28f8e (patch) | |
tree | 38cb64585d4c1d5e00c23420d31dfc69552a7129 | |
parent | little webinterface fixes (diff) | |
download | pyload-21e4a31c9da1d0f6bcd8672a3df8c90b64f28f8e.tar.xz |
improved read_url_list
-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)) |