def info(cls):
"""self documenting class method
"""
+ doc = 'Undocumented plugin! Fill "{}" docstring'.format(cls.__name__)
+ if cls.__doc__:
+ doc = cls.__doc__.strip(' \n').splitlines()[0]
return {'name': cls.__name__,
- 'doc': cls.__doc__.strip(' \n').splitlines()[0]
+ 'doc': doc,
}
def __init__(self, daemon):
self.log = daemon.log
self.__daemon = daemon
+ self.player = daemon.player
self.plugin_conf = None
self.__get_config()
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))
"""
pass
+ def callback_need_track_fb(self):
+ """Called when callback_next_song failled to find tracks to queue
+ Returns a list of Track objects to add
+ """
+ pass
+
def shutdown(self):
pass