summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py3
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"""