diff options
Diffstat (limited to 'module/file_list.py')
-rw-r--r-- | module/file_list.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/module/file_list.py b/module/file_list.py index d3af2c1b2..8c1c32564 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -56,14 +56,12 @@ class File_List(object): self.append(url) def remove(self, pyfile): + if not self.config['debug_mode']: + if pyfile in self.files: + self.files.remove(pyfile) - pass - # - #if pyfile in self.files: - #self.files.remove(pyfile) -# - #self.data['order'].remove(pyfile.id) - #del self.data[pyfile.id] + self.data['order'].remove(pyfile.id) + del self.data[pyfile.id] def remove_id(self, pyid): #also abort download |