summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py32
1 files changed, 12 insertions, 20 deletions
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
@@ -61,6 +61,16 @@ class ThreadManager:
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"""
return [x.active.id for x in self.threads if x.active and x.active != "quit"]
@@ -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