diff options
author | Stefano <l.stickell@yahoo.it> | 2013-09-15 20:07:09 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-09-24 19:45:29 +0200 |
commit | a6e047b16569802fdbfa16bbbbf44fb2a6e5d1a8 (patch) | |
tree | e8540e761bbf55f9c7d1a31e0769bbe1c8ed002a /pyload/plugins/addons/ExternalScripts.py | |
parent | improved login / logout rendering (diff) | |
download | pyload-a6e047b16569802fdbfa16bbbbf44fb2a6e5d1a8.tar.xz |
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
Diffstat (limited to 'pyload/plugins/addons/ExternalScripts.py')
-rw-r--r-- | pyload/plugins/addons/ExternalScripts.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugins/addons/ExternalScripts.py b/pyload/plugins/addons/ExternalScripts.py index 49774a42b..7b7dafae4 100644 --- a/pyload/plugins/addons/ExternalScripts.py +++ b/pyload/plugins/addons/ExternalScripts.py @@ -27,7 +27,7 @@ from module.utils.fs import save_join, exists, join, listdir class ExternalScripts(Addon): __name__ = "ExternalScripts" - __version__ = "0.22" + __version__ = "0.23" __description__ = """Run external scripts""" __config__ = [("activated", "bool", "Activated", "True")] __author_name__ = ("mkaay", "RaNaN", "spoob") @@ -84,12 +84,12 @@ class ExternalScripts(Addon): def downloadFinished(self, pyfile): for script in self.scripts['download_finished']: self.callScript(script, pyfile.pluginname, pyfile.url, pyfile.name, - save_join(self.core.config['general']['download_folder'], + save_join(self.config['general']['download_folder'], pyfile.package().folder, pyfile.name), pyfile.id) def packageFinished(self, pypack): for script in self.scripts['package_finished']: - folder = self.core.config['general']['download_folder'] + folder = self.config['general']['download_folder'] folder = save_join(folder, pypack.folder) self.callScript(script, pypack.name, folder, pypack.password, pypack.id) |