summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-29 18:45:11 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-29 18:45:11 +0200
commit031cc3a5f5b842698c0323fbec7d7a33f3ca99f8 (patch)
tree173db8765e6b2ed2284d6ffcca4919e366ce4e2d
parent[MediafireCom] Version up (diff)
downloadpyload-031cc3a5f5b842698c0323fbec7d7a33f3ca99f8.tar.xz
[ExternalScripts] Update
-rw-r--r--module/plugins/hooks/ExternalScripts.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index 8ab7af55c..9324e306e 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.37"
+ __version__ = "0.38"
__config__ = [("activated", "bool", "Activated" , True ),
("waitend" , "bool", "Wait script ending", False)]
@@ -120,7 +120,7 @@ class ExternalScripts(Hook):
def downloadPreparing(self, pyfile):
for script in self.scripts['download_preparing']:
- self.callScript(script, pyfile.id, pyfile.name, pyfile.pluginname, pyfile.url, None)
+ self.callScript(script, pyfile.id, pyfile.name, None, pyfile.pluginname, pyfile.url)
def downloadFailed(self, pyfile):
@@ -131,7 +131,7 @@ class ExternalScripts(Hook):
for script in self.scripts['download_failed']:
file = save_join(download_folder, pyfile.name)
- self.callScript(script, pyfile.id, pyfile.name, pyfile.pluginname, pyfile.url, file)
+ self.callScript(script, pyfile.id, pyfile.name, file, pyfile.pluginname, pyfile.url)
def downloadFinished(self, pyfile):
@@ -142,17 +142,17 @@ class ExternalScripts(Hook):
for script in self.scripts['download_finished']:
file = save_join(download_folder, pyfile.name)
- self.callScript(script, pyfile.id, pyfile.name, pyfile.pluginname, pyfile.url, file)
+ self.callScript(script, pyfile.id, pyfile.name, file, pyfile.pluginname, pyfile.url)
def archive_extract_failed(self, pyfile, archive):
for script in self.scripts['archive_extract_failed']:
- self.callScript(script, pyfile.id, pyfile.name, archive.out, archive.filename, archive.files)
+ self.callScript(script, pyfile.id, pyfile.name, archive.filename, archive.out, archive.files)
def archive_extracted(self, pyfile, archive):
for script in self.scripts['archive_extracted']:
- self.callScript(script, pyfile.id, pyfile.name, archive.out, archive.filename, archive.files)
+ self.callScript(script, pyfile.id, pyfile.name, archive.filename, archive.out, archive.files)
def packageFinished(self, pypack):
@@ -162,7 +162,7 @@ class ExternalScripts(Hook):
download_folder = self.config['general']['download_folder']
for script in self.scripts['package_finished']:
- self.callScript(script, pypack.id, pypack.name, download_folder)
+ self.callScript(script, pypack.id, pypack.name, download_folder, pypack.password)
def packageDeleted(self, pid):
@@ -174,7 +174,7 @@ class ExternalScripts(Hook):
download_folder = self.config['general']['download_folder']
for script in self.scripts['package_deleted']:
- self.callScript(script, pack.id, pack.name, download_folder)
+ self.callScript(script, pack.id, pack.name, download_folder, pack.password)
def package_extract_failed(self, pypack):
@@ -184,7 +184,7 @@ class ExternalScripts(Hook):
download_folder = self.config['general']['download_folder']
for script in self.scripts['package_extract_failed']:
- self.callScript(script, pypack.id, pypack.name, download_folder)
+ self.callScript(script, pypack.id, pypack.name, download_folder, pypack.password)
def package_extracted(self, pypack):