summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ContainerDownload.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-01-06 22:11:24 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-01-06 22:11:24 +0100
commitd2aa3fceb9f896343b128d40f20a0465cf69efca (patch)
treea04d975938f19582b2afa2278107bd07e4c86ad4 /module/plugins/hooks/ContainerDownload.py
parentcli fix, webinterface db check (diff)
downloadpyload-d2aa3fceb9f896343b128d40f20a0465cf69efca.tar.xz
small fixes, new hook stuff
Diffstat (limited to 'module/plugins/hooks/ContainerDownload.py')
-rw-r--r--module/plugins/hooks/ContainerDownload.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/plugins/hooks/ContainerDownload.py b/module/plugins/hooks/ContainerDownload.py
index d031cdf69..417b42ee8 100644
--- a/module/plugins/hooks/ContainerDownload.py
+++ b/module/plugins/hooks/ContainerDownload.py
@@ -35,6 +35,8 @@ class ContainerDownload(Hook):
def downloadFinished(self, pyfile):
filename = pyfile.status.filename
+ if not pyfile.url.startswith("http"):
+ return
if filename.endswith(".dlc") or filename.endswith(".ccf") or filename.endswith(".rsdf"):
self.logger.info("ContainerDownload hook: adding container file")
location = abspath(join(pyfile.folder, filename))