From 56ed29b85429010f5860cd62ad1b50002b11c6b0 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 20 Jun 2010 17:17:47 +0200 Subject: fix fix fix --- module/DownloadThread.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'module/DownloadThread.py') diff --git a/module/DownloadThread.py b/module/DownloadThread.py index 95ed88da0..2178bd21e 100644 --- a/module/DownloadThread.py +++ b/module/DownloadThread.py @@ -121,16 +121,21 @@ class DownloadThread(Thread): def handleNewInterface(self, pyfile): status = pyfile.status plugin = pyfile.plugin - status.type = "starting" - self.parent.parent.pullManager.addEvent(UpdateEvent("file", pyfile.id, "queue")) if plugin.__type__ == "container" or plugin.__type__ == "crypter": status.type = "decrypting" + else: #hoster + status.type = "starting" self.parent.parent.pullManager.addEvent(UpdateEvent("file", pyfile.id, "queue")) if plugin.__type__ == "container": plugin.decrypt(pyfile.url) - + else: + plugin.preparePlugin(self) + + plugin.prepareDownload() + + plugin.startDownload() status.type = "finished" def download(self, pyfile): -- cgit v1.2.3