From 2f5ebbf04141d6fc3194905b1983af9350b3c43f Mon Sep 17 00:00:00 2001 From: spoob Date: Sat, 20 Jun 2009 18:12:07 +0200 Subject: Added 4chan.org Thread Download plugin, fixed #17 --- module/file_list.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'module') diff --git a/module/file_list.py b/module/file_list.py index dbac8ea02..d0ad13860 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -49,13 +49,11 @@ class File_List(object): self.append(url) def remove(self, pyfile): + + if pyfile in self.files: + self.files.remove(pyfile) - pass - - #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""" -- cgit v1.2.3