summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-07 22:46:19 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-07 22:46:19 +0200
commit8a8a521b3c4af39ca8d3fb29d1e322cca230b3c2 (patch)
tree9509772e03ac887ad73392da876f10f405ff0a0e /module/ThreadManager.py
parentfile info prefetching (RapidshareCom UploadedTo), download folder fix, Serien... (diff)
downloadpyload-8a8a521b3c4af39ca8d3fb29d1e322cca230b3c2.tar.xz
better link checking
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