From a6e047b16569802fdbfa16bbbbf44fb2a6e5d1a8 Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 15 Sep 2013 11:07:09 -0700 Subject: Merge pull request #218 from vuolter/s/plugin/coreconfig Use config instead core.config for plugins (cherry picked from commit 511f0e17eb598b078a48a6eac0fdab5438cf539c) Conflicts: pyload/plugins/addons/ClickAndLoad.py --- pyload/plugins/addons/ExtractArchive.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pyload/plugins/addons/ExtractArchive.py') diff --git a/pyload/plugins/addons/ExtractArchive.py b/pyload/plugins/addons/ExtractArchive.py index 91f1f96c5..3592163e7 100644 --- a/pyload/plugins/addons/ExtractArchive.py +++ b/pyload/plugins/addons/ExtractArchive.py @@ -58,7 +58,7 @@ class ExtractArchive(Addon): Provides: unrarFinished (folder, filename) """ __name__ = "ExtractArchive" - __version__ = "0.14" + __version__ = "0.15" __description__ = "Extract different kind of archives" __config__ = [("activated", "bool", "Activated", True), ("fullpath", "bool", "Extract full path", True), @@ -302,13 +302,13 @@ class ExtractArchive(Addon): if not exists(f): continue try: - if self.core.config["permission"]["change_file"]: + if self.config["permission"]["change_file"]: if isfile(f): - chmod(f, int(self.core.config["permission"]["file"], 8)) + chmod(f, int(self.config["permission"]["file"], 8)) elif isdir(f): - chmod(f, int(self.core.config["permission"]["folder"], 8)) + chmod(f, int(self.config["permission"]["folder"], 8)) - if self.core.config["permission"]["change_dl"] and os.name != "nt": + if self.config["permission"]["change_dl"] and os.name != "nt": uid = getpwnam(self.config["permission"]["user"])[2] gid = getgrnam(self.config["permission"]["group"])[2] chown(f, uid, gid) -- cgit v1.2.3