X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fplayer.py;h=cb562b5f9a3735d4a6edc2f72f3d6e15a6f1f0d1;hb=2eb13c85fe72ade75193b589748920615fbb22d2;hp=6b6d2cba4dec19ff4cd19039f9a1ac4c3c8ced9e;hpb=78a694ddcd2a6ecc8b2b1fd3c74ee2d938707305;p=mpd-sima.git diff --git a/sima/lib/player.py b/sima/lib/player.py index 6b6d2cb..cb562b5 100644 --- a/sima/lib/player.py +++ b/sima/lib/player.py @@ -23,10 +23,11 @@ # 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) """