# -*- coding: utf-8 -*-
-# Copyright (c) 2013, 2014 Jack Kaliko <kaliko@azylum.org>
+# Copyright (c) 2013-2015 Jack Kaliko <kaliko@azylum.org>
#
# This file is part of sima
#
First non-empty line of the docstring is used as description
Rest of the docstring at your convenience.
- The plugin Name MUST be the same as the module (file name), case
- insensitive: for instance plugin.py → Plugin
+ The lowercased plugin Name MUST be the same as the module (file name),
+ for instance Plugin → plugin.py
It eases plugins discovery and simplifies the code to handle them,
IMHO, it's a fair trade-off.
"""
# self.log.debug('Got config for {0}: {1}'.format(self,
# self.plugin_conf))
+ def start(self):
+ """
+ Called when the daemon().run() is called and
+ right after the player has connected successfully.
+ """
+ pass
+
def callback_player(self):
"""
Called on player changes, stopped, paused, skipped
def callback_playlist(self):
"""
Called on playlist changes
-
Not returning data
"""
pass
def callback_next_song(self):
- """Not returning data,
+ """
Could be use to scrobble, maintain an history…
+ Not returning data,
"""
pass
def callback_need_track(self):
- """Returns a list of Track objects to add
+ """
+ Returns a list of Track objects to add
"""
pass
def callback_need_track_fb(self):
- """Called when callback_next_song failled to find tracks to queue
+ """
+ Called when callback_need_track failled to find tracks to queue
Returns a list of Track objects to add
"""
pass