]> kaliko git repositories - mpd-sima.git/blobdiff - sima/lib/plugin.py
Implement "single_album" filter
[mpd-sima.git] / sima / lib / plugin.py
index d44abafda47cd6eb142233c97d0d29252d47dedd..0e80ae582f865751c8f9b43a39bd5b63d53e311e 100644 (file)
@@ -25,6 +25,7 @@ class Plugin():
     def __init__(self, daemon):
         self.log = daemon.log
         self.__daemon = daemon
+        self.player = daemon.player
         self.plugin_conf = None
         self.__get_config()
 
@@ -37,7 +38,7 @@ class Plugin():
         conf = self.__daemon.config
         for sec in conf.sections():
             if sec.lower() == self.__class__.__name__.lower():
-                self.plugin_conf = dict(conf.items(sec))
+                self.plugin_conf = conf[sec]
         #if self.plugin_conf:
         #    self.log.debug('Got config for {0}: {1}'.format(self,
         #                                                    self.plugin_conf))