summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-01 13:10:51 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-01 13:10:51 +0200
commitaf6cf761c6d873648fa0ffdb4cc9f2f1a032dd3d (patch)
tree518e26cd3f11299ab3dd6755ae5a877216a24ee9 /module/plugins/hooks
parentwebif config fix (diff)
downloadpyload-af6cf761c6d873648fa0ffdb4cc9f2f1a032dd3d.tar.xz
some fixes
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/ExternalScripts.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index c4bc76c82..a876618c3 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -28,6 +28,7 @@ class ExternalScripts(Hook):
__name__ = "ExternalScripts"
__version__ = "0.1"
__description__ = """run external scripts"""
+ __config__ = [ ("activated", "bool", "Activated" , "True") ]
__author_name__ = ("mkaay", "RaNaN", "spoob")
__author_mail__ = ("mkaay@mkaay.de", "ranan@pyload.org", "spoob@pyload.org")
@@ -77,8 +78,8 @@ class ExternalScripts(Hook):
try:
out = subprocess.Popen([join(self.folder, 'download_finished', script), pyfile.plugin.__name__, pyfile.url, pyfile.name, \
join(self.core.config['general']['download_folder'], pyfile.package().folder, pyfile.name)], stdout=subprocess.PIPE)
- except Exception, e:
- print e
+ except:
+ pass
def packageFinished(self, pypack):
for script in self.scripts['package_finished']: