From b82662e8c9ac9ff0047f75a04f350dc880eb330f Mon Sep 17 00:00:00 2001 From: spoob Date: Thu, 18 Jun 2009 15:05:25 +0200 Subject: worked on gigasize.com Plugin --- module/file_list.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'module/file_list.py') diff --git a/module/file_list.py b/module/file_list.py index 3a1c866dc..ea2dfd817 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -50,10 +50,12 @@ class File_List(object): def remove(self, pyfile): - if pyfile in self.files: - self.files.remove(pyfile) + pass - del self.data[pyfile.id] + #if pyfile in self.files: + # self.files.remove(pyfile) + + #del self.data[pyfile.id] def get_id(self): """return a free id""" @@ -62,7 +64,6 @@ class File_List(object): id += 1 return id - def save(self): output = open('links.pkl', 'wb') @@ -95,4 +96,4 @@ class File_List(object): class Data(): def __init__(self, url): - self.url = url \ No newline at end of file + self.url = url -- cgit v1.2.3