diff options
author | Jeix <devnull@localhost> | 2010-06-20 13:07:24 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-06-20 13:07:24 +0200 |
commit | 29241018fe7338a88d01a0c37f0a3f9e45b8d6f3 (patch) | |
tree | a83d47660de94bb79cfaf2f0ac2c6ac618a5d061 /module/plugins/hooks/ExternalScripts.py | |
parent | Debug = False is the better choice as default (diff) | |
download | pyload-29241018fe7338a88d01a0c37f0a3f9e45b8d6f3.tar.xz |
Package_finished event for scripts implemented
bugfix: closing socket for IRC connection (xdcc)
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index 9e0f3855c..6a45cdace 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -80,10 +80,11 @@ class ExternalScripts(Hook): pass def packageFinished(self, pypack): - """ - not implemented! - """ - pass + for script in self.scripts['package_finished']: + try: + out = subprocess.Popen([join(self.folder, 'package_finished', script), pypack.data['package_name'], pypack.data['folder']], stdout=subprocess.PIPE) + except: + pass def beforeReconnecting(self, ip): for script in self.scripts['before_reconnect']: |