From c4b30b08857225e6a70aa3171b6663d84e78b22f Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@users.noreply.github.com>
Date: Fri, 20 Mar 2015 11:22:16 +0100
Subject: [ExternalScripts] Rename pyload_shutdown to pyload_stop

---
 module/plugins/hooks/ExternalScripts.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index dffa3649f..8f6c405fd 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -10,7 +10,7 @@ from module.utils import fs_encode, save_join
 class ExternalScripts(Hook):
     __name__    = "ExternalScripts"
     __type__    = "hook"
-    __version__ = "0.36"
+    __version__ = "0.37"
 
     __config__ = [("activated", "bool", "Activated"         , True ),
                   ("waitend"  , "bool", "Wait script ending", False)]
@@ -39,7 +39,7 @@ class ExternalScripts(Hook):
         self.info    = {'oldip': None}
         self.scripts = {}
 
-        folders = ["pyload_start", "pyload_restart", "pyload_shutdown",
+        folders = ["pyload_start", "pyload_restart", "pyload_stop",
                    "before_reconnect", "after_reconnect",
                    "download_preparing", "download_failed", "download_finished",
                    "archive_extract_failed", "archive_extracted",
@@ -107,7 +107,7 @@ class ExternalScripts(Hook):
 
 
     def coreExiting(self):
-        for script in self.scripts['pyload_restart' if self.core.do_restart else 'pyload_shutdown']:
+        for script in self.scripts['pyload_restart' if self.core.do_restart else 'pyload_stop']:
             self.callScript(script)
 
 
-- 
cgit v1.2.3