summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExternalScripts.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-09-15 20:07:09 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-09-15 20:07:09 +0200
commit511f0e17eb598b078a48a6eac0fdab5438cf539c (patch)
tree1ec231570dfedb03b4e8be744f112525064a078b /module/plugins/hooks/ExternalScripts.py
parentFastshare: fixed premium issue in #253 (diff)
parentPlugins: core.config -> config (diff)
downloadpyload-511f0e17eb598b078a48a6eac0fdab5438cf539c.tar.xz
Merge pull request #218 from vuolter/s/plugin/coreconfig
Use config instead core.config for plugins
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r--module/plugins/hooks/ExternalScripts.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index 5b7aade94..de8afda5f 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -28,7 +28,7 @@ from module.utils import save_join
class ExternalScripts(Hook):
__name__ = "ExternalScripts"
- __version__ = "0.22"
+ __version__ = "0.23"
__description__ = """Run external scripts"""
__config__ = [("activated", "bool", "Activated", "True")]
__author_name__ = ("mkaay", "RaNaN", "spoob")
@@ -85,12 +85,12 @@ class ExternalScripts(Hook):
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)