summaryrefslogtreecommitdiffstats
path: root/module/download_thread.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-04-06 16:01:45 +0200
committerGravatar spoob <spoob@gmx.de> 2010-04-06 16:01:45 +0200
commit1a80a6dea59ef65565597ae2fde79761f44d3af3 (patch)
tree7004152ae6b975bb66a4845cc35acaada34f179b /module/download_thread.py
parentHotfile Premium (diff)
downloadpyload-1a80a6dea59ef65565597ae2fde79761f44d3af3.tar.xz
Universal File Not Found
Diffstat (limited to 'module/download_thread.py')
-rw-r--r--module/download_thread.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index 56f4e0d08..b56fc1b4c 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -136,7 +136,9 @@ class Download_Thread(threading.Thread):
pyfile.init_download()
- pyfile.plugin.prepare(self)
+ if not pyfile.plugin.prepare(self):
+ raise Exception, _("File not found")
+
pyfile.plugin.req.set_timeout(self.parent.parent.config['general']['max_download_time'])
if pyfile.plugin.props["type"] == "container":