diff options
author | spoob <spoob@gmx.de> | 2009-06-20 18:12:07 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-06-20 18:12:07 +0200 |
commit | 2f5ebbf04141d6fc3194905b1983af9350b3c43f (patch) | |
tree | 74d43377259436bcf73920b29dab3f6d3ccebd81 /module | |
parent | Added Netload.in Download Plugin (diff) | |
download | pyload-2f5ebbf04141d6fc3194905b1983af9350b3c43f.tar.xz |
Added 4chan.org Thread Download plugin, fixed #17
Diffstat (limited to 'module')
-rw-r--r-- | module/file_list.py | 10 |
1 files changed, 4 insertions, 6 deletions
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""" |