diff options
author | mkaay <mkaay@mkaay.de> | 2010-06-20 17:17:47 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-06-20 17:17:47 +0200 |
commit | 56ed29b85429010f5860cd62ad1b50002b11c6b0 (patch) | |
tree | c506767a3cd0175909de3063d29d6a6e0e9635a1 /module/ThreadManager.py | |
parent | workaround for ExternalScripts.py package location (diff) | |
download | pyload-56ed29b85429010f5860cd62ad1b50002b11c6b0.tar.xz |
fix fix fix
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py index 1c5a89a5c..4e2beaf49 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -114,6 +114,8 @@ class ThreadManager(Thread): else: self.parent.logger.info(_("%i new packages from %s") % (len(packages), pyfile.status.filename)) for name, links in packages: + if not name: + name = pyfile.status.filename pid = self.list.packager.addNewPackage(name) for link in links: newFile = self.list.collector.addLink(link) @@ -124,6 +126,7 @@ class ThreadManager(Thread): self.parent.logger.info(_("%i links in %s") % (len(links), name)) else: pass + self.list.packager.removeFileFromPackage(pyfile.id, pyfile.package.data["id"]) def jobFinished(self, pyfile): """manage completing download""" |