X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fplugin.py;h=bb80a272642d5852b2518775da16bc32ff14ebfc;hb=b61b2c447297e50db76b73650065caeef0cb6f98;hp=755aadf93efbfd514c39daad003bd5b71cb23f16;hpb=4414e379aa08c465416d5f2bdbc4e9292170f6d8;p=mpd-sima.git diff --git a/sima/lib/plugin.py b/sima/lib/plugin.py index 755aadf..bb80a27 100644 --- a/sima/lib/plugin.py +++ b/sima/lib/plugin.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2013, 2014 Jack Kaliko +# Copyright (c) 2013-2015 Jack Kaliko # # This file is part of sima # @@ -64,6 +64,13 @@ class Plugin: # 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 @@ -79,24 +86,26 @@ class Plugin: 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