diff options
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 7 |
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) |