diff options
author | mkaay <mkaay@mkaay.de> | 2010-06-20 17:17:47 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-06-20 17:17:47 +0200 |
commit | 56ed29b85429010f5860cd62ad1b50002b11c6b0 (patch) | |
tree | c506767a3cd0175909de3063d29d6a6e0e9635a1 /module/DownloadThread.py | |
parent | workaround for ExternalScripts.py package location (diff) | |
download | pyload-56ed29b85429010f5860cd62ad1b50002b11c6b0.tar.xz |
fix fix fix
Diffstat (limited to 'module/DownloadThread.py')
-rw-r--r-- | module/DownloadThread.py | 11 |
1 files changed, 8 insertions, 3 deletions
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): |