]> kaliko git repositories - mpd-sima.git/blobdiff - sima/lib/plugin.py
Plugins init call happen before player is connected
[mpd-sima.git] / sima / lib / plugin.py
index 755aadf93efbfd514c39daad003bd5b71cb23f16..3424ce3d4e6f4e3de3cd1a6bfb03ce84a0a06f79 100644 (file)
@@ -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.
+        ie. right after the player has connected successfully.
+        """
+        pass
+
     def callback_player(self):
         """
         Called on player changes, stopped, paused, skipped