From d44888ca5ab15913db944d1b1646df8f103c4ba6 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 26 May 2009 00:04:33 +0200 Subject: improved plugins --- module/thread_list.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'module/thread_list.py') diff --git a/module/thread_list.py b/module/thread_list.py index 34fa05599..1f967540b 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -53,11 +53,11 @@ class Thread_List(object): def remove_thread(self, thread): self.threads.remove(thread) - def status(self): - if not self.status_queue.empty(): - while not self.status_queue.empty(): - status = self.status_queue.get() - self.py_load_files[status.id].status = status +# def status(self): +# if not self.status_queue.empty(): +# while not self.status_queue.empty(): +# status = self.status_queue.get() +# self.py_load_files[status.id].status = status def get_job(self): # return job if suitable, otherwise send thread idle @@ -71,7 +71,8 @@ class Thread_List(object): if pyfile: self.py_downloading.append(pyfile) - self.occ_plugins.append(pyfile.modul.__name__) + if not pyfile.plugin.multi_dl: + self.occ_plugins.append(pyfile.modul.__name__) self.lock.release() return pyfile -- cgit v1.2.3