summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-02-13 13:01:54 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-02-13 13:01:54 +0100
commitb635138699db191ee4facfe1ccd43207647010d2 (patch)
treeee0e6e94b310170283217e7263fb779ba9c701cb /module
parent[OpenloadIo] Update (diff)
downloadpyload-b635138699db191ee4facfe1ccd43207647010d2.tar.xz
[ExternalScripts] Update
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/ExternalScripts.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index 00497d1ad..4003e11a9 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -10,7 +10,7 @@ from module.plugins.internal.misc import encode, Expose
class ExternalScripts(Addon):
__name__ = "ExternalScripts"
__type__ = "hook"
- __version__ = "0.70"
+ __version__ = "0.71"
__status__ = "testing"
__config__ = [("activated", "bool", "Activated" , True ),
@@ -231,14 +231,13 @@ class ExternalScripts(Addon):
self.call_script("package_deleted", *args)
- def package_failed(self, pid):
+ def package_failed(self, pypack):
dl_folder = self.pyload.config.get("general", "download_folder")
- pdata = self.pyload.api.getPackageInfo(pid)
if self.pyload.config.get("general", "folder_per_package"):
dl_folder = os.path.join(dl_folder, pdata.folder)
- args = [pdata.pid, pdata.name, dl_folder, pdata.password]
+ args = [pypack.id, pypack.name, dl_folder, pypack.password]
self.call_script("package_failed", *args)