]> kaliko git repositories - mpd-sima.git/blobdiff - sima/lib/plugin.py
Simplified configuration manager (db_file's no longer a special case)
[mpd-sima.git] / sima / lib / plugin.py
index 999255f956ce0ff6e0c23ab8230a38129aaf7cc6..d44abafda47cd6eb142233c97d0d29252d47dedd 100644 (file)
@@ -15,8 +15,11 @@ class Plugin():
     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):
@@ -70,6 +73,12 @@ class Plugin():
         """
         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