summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/download_thread.py2
-rw-r--r--module/file_list.py8
2 files changed, 4 insertions, 6 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index f8cad7846..f7aa2ecb1 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -91,7 +91,7 @@ class Download_Thread(threading.Thread):
return False
sleep(1)
if status.filename == "":
- pyfile.get_filename()
+ status.filename = pyfile.get_filename()
status.want_reconnect = False
diff --git a/module/file_list.py b/module/file_list.py
index ea2dfd817..00a3e0603 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -50,12 +50,10 @@ class File_List(object):
def remove(self, pyfile):
- pass
+ if pyfile in self.files:
+ self.files.remove(pyfile)
- #if pyfile in self.files:
- # self.files.remove(pyfile)
-
- #del self.data[pyfile.id]
+ del self.data[pyfile.id]
def get_id(self):
"""return a free id"""