From 52dabdbe4241b6c6af8bc139d480be5ed2af2294 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 21 Oct 2015 01:51:12 +0200 Subject: Boring code cosmetics (2) --- module/plugins/hooks/ExternalScripts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hooks') diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index d2e52338f..53ff6a154 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -171,14 +171,14 @@ class ExternalScripts(Addon): def package_deleted(self, pid): - pypack = self.pyload.api.getPackageInfo(pid) + pdata = self.pyload.api.getPackageInfo(pid) if self.pyload.config.get("general", "folder_per_package"): dl_folder = fs_join(self.pyload.config.get("general", "download_folder"), pypack.folder) else: dl_folder = self.pyload.config.get("general", "download_folder") - args = [pypack.pid, pypack.name, dl_folder, pypack.password] + args = [pdata.pid, pdata.name, dl_folder, pdata.password] self._call("package_deleted", args) -- cgit v1.2.3