X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fclient.py;h=9eae523bd574e209d5e0c7ff8459e532b90d9370;hb=18053c8b0d6b11136678c8a8f5fedff3058a7523;hp=8481f5cfa71d3e7fe35b9fecece2238ae24c7c0d;hpb=4f1b17d6b72946b60f79b8c3f5fa5557710b9aac;p=mpd-sima.git diff --git a/sima/client.py b/sima/client.py index 8481f5c..9eae523 100644 --- a/sima/client.py +++ b/sima/client.py @@ -96,7 +96,7 @@ class PlayerClient(Player): TODO: handle exception in command not going through _client_wrapper() (ie. remove…) """ - database = None # sima database (history, blaclist) + database = None # sima database (history, blacklist) def __init__(self, host="localhost", port="6600", password=None): super().__init__() @@ -308,7 +308,7 @@ class PlayerClient(Player): self.log.warning('pending commands: {}'.format(self._client._pending)) def remove(self, position=0): - self._client.delete(position) + self.delete(position) def add(self, track): """Overriding MPD's add method to accept add signature with a Track @@ -321,7 +321,7 @@ class PlayerClient(Player): @property def state(self): - return str(self._client.status().get('state')) + return str(self.status().get('state')) @property def current(self):