From 0336919f4ce067333462a2c6e196daf6a4062a6a Mon Sep 17 00:00:00 2001 From: spoob Date: Wed, 12 Aug 2009 20:08:03 +0200 Subject: added debug mode --- module/file_list.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'module') 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 -- cgit v1.2.3