summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-01-13 11:18:03 +0100
committerGravatar spoob <spoob@gmx.de> 2010-01-13 11:18:03 +0100
commit324ed3da96b07d42da753d1314495724ef4c2b7a (patch)
treeae09084233e89578745c2f1808b7f412f913fa2c /module/plugins/Hook.py
parentfinally and officially: webinterface home page working ;) (diff)
downloadpyload-324ed3da96b07d42da753d1314495724ef4c2b7a.tar.xz
removed Mp3Convert, just load plugin config once
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 1a7fba092..366cde185 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -26,7 +26,7 @@ from module.XMLConfigParser import XMLConfigParser
class Hook():
def __init__(self, core):
self.logger = logging.getLogger("log")
- self.configParser = XMLConfigParser(join("module","config","plugin.xml"))
+ self.configParser = core.parser_plugins
self.config = {}
props = {}
props['name'] = "Hook"
@@ -40,10 +40,7 @@ class Hook():
def readConfig(self):
self.configParser.loadData()
section = self.props['name']
- try:
- self.config = self.configParser.getConfig()[section]
- except:
- self.setup()
+ self.config = self.configParser.getConfig()[section]
def setup(self):
self.configParser.set(self.props["name"], {"option": "activated", "type": "bool", "name": "Activated"}, True)