X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fplayer.py;h=cb562b5f9a3735d4a6edc2f72f3d6e15a6f1f0d1;hb=2eb13c85fe72ade75193b589748920615fbb22d2;hp=ddba0a9bea46357e94ec2f5bc6a1ebef7b19f6fd;hpb=24993cd99b847733894f57fd004ed52b5390244a;p=mpd-sima.git diff --git a/sima/lib/player.py b/sima/lib/player.py index ddba0a9..cb562b5 100644 --- a/sima/lib/player.py +++ b/sima/lib/player.py @@ -23,13 +23,13 @@ # 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. When querying player music library for tracks, Player instance *must* return @@ -41,7 +41,6 @@ class Player(object): * current * queue * playlist - * """ def __init__(self): @@ -58,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) """