diff options
| author | 2009-06-18 15:05:25 +0200 | |
|---|---|---|
| committer | 2009-06-18 15:05:25 +0200 | |
| commit | b82662e8c9ac9ff0047f75a04f350dc880eb330f (patch) | |
| tree | 037c5d1784a0321da92e75c3cfd3ee4f2957ea60 /module | |
| parent | plugin for gigasize (diff) | |
| download | pyload-b82662e8c9ac9ff0047f75a04f350dc880eb330f.tar.xz | |
worked on gigasize.com Plugin
Diffstat (limited to 'module')
| -rw-r--r-- | module/download_thread.py | 2 | ||||
| -rw-r--r-- | module/file_list.py | 11 | 
2 files changed, 8 insertions, 5 deletions
diff --git a/module/download_thread.py b/module/download_thread.py index f68cfedd7..f8cad7846 100644 --- a/module/download_thread.py +++ b/module/download_thread.py @@ -90,6 +90,8 @@ class Download_Thread(threading.Thread):                  status.want_reconnect = False                  return False              sleep(1) +        if status.filename == "": +            pyfile.get_filename()          status.want_reconnect = False 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  | 
