]> kaliko git repositories - mpd-sima.git/blobdiff - sima/lib/player.py
New, slightly enhanced, meta Objects.
[mpd-sima.git] / sima / lib / player.py
index 6b6d2cba4dec19ff4cd19039f9a1ac4c3c8ced9e..cb562b5f9a3735d4a6edc2f72f3d6e15a6f1f0d1 100644 (file)
 
 # standard library import
 import logging
+from difflib import get_close_matches
 
 # local import
-#from sima.lib.track import Track
-
+from .simastr import SimaStr
+from ..utils.leven import levenshtein_ratio
 
 class Player(object):
     """Player interface to inherit from.
@@ -40,7 +41,6 @@ class Player(object):
         * current
         * queue
         * playlist
-        *
     """
 
     def __init__(self):
@@ -57,6 +57,10 @@ class Player(object):
         """
         raise NotImplementedError
 
+    def clean(self):
+        """Any cleanup necessary"""
+        pass
+
     def remove(self, position=0):
         """Removes the oldest element of the playlist (index 0)
         """