diff options
author | Walter Purcaro <vuolter@gmail.com> | 2013-08-02 01:03:54 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2013-09-03 23:07:54 +0200 |
commit | 6a6ec88816afecf43430e63908e8b2330b567b5f (patch) | |
tree | 849fa07d37b8eeebfed11a4b4426d8990b9da323 /module/plugins/hooks/ExtractArchive.py | |
parent | BitshareCom: fixes (diff) | |
download | pyload-6a6ec88816afecf43430e63908e8b2330b567b5f.tar.xz |
Plugins: core.config -> config
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r-- | module/plugins/hooks/ExtractArchive.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index 346c37021..2cb546fbb 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -59,7 +59,7 @@ class ExtractArchive(Hook): 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), @@ -303,13 +303,13 @@ class ExtractArchive(Hook): 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) |