diff options
author | spoob <spoob@gmx.de> | 2010-01-13 11:18:03 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-01-13 11:18:03 +0100 |
commit | 324ed3da96b07d42da753d1314495724ef4c2b7a (patch) | |
tree | ae09084233e89578745c2f1808b7f412f913fa2c /module/plugins/Hook.py | |
parent | finally and officially: webinterface home page working ;) (diff) | |
download | pyload-324ed3da96b07d42da753d1314495724ef4c2b7a.tar.xz |
removed Mp3Convert, just load plugin config once
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r-- | module/plugins/Hook.py | 7 |
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) |