From 8a8a521b3c4af39ca8d3fb29d1e322cca230b3c2 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 7 Aug 2010 22:46:19 +0200 Subject: better link checking --- module/ThreadManager.py | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) (limited to 'module/ThreadManager.py') diff --git a/module/ThreadManager.py b/module/ThreadManager.py index 1e4b8ac2b..9e8da1b2c 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -41,7 +41,7 @@ class ThreadManager: self.threads = [] # thread list self.localThreads = [] #hook+decrypter threads - self.infoThread = PluginThread.InfoThread(self) + #self.infoThread = PluginThread.InfoThread(self) self.pause = True @@ -60,6 +60,16 @@ class ThreadManager: thread = PluginThread.DownloadThread(self) self.threads.append(thread) + #---------------------------------------------------------------------- + def createInfoThread(self, data): + """ + start a thread whichs fetches online status and other infos + data = [ .. () .. ] + """ + + PluginThread.InfoThread(self, data) + + #---------------------------------------------------------------------- def downloadingIds(self): """get a list of the currently downloading pyfile's ids""" @@ -174,22 +184,4 @@ class ThreadManager: else: thread = PluginThread.DecrypterThread(self, job) - - job = self.core.files.getInfoJob() - if job: - try: - job.initPlugin() - except Exception, e: - self.log.critical(str(e)) - if self.core.debug: - print_exc() - - if job.plugin.__type__ == "hoster": - self.infoThread.put(job) - - - - - - - + \ No newline at end of file -- cgit v1.2.3