X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fclient.py;h=c04f560aece84c749a839e0aade0823f47493af4;hb=80162143f725cbe604f7241e4dfc4929833470e5;hp=525f268d0c5b5c02ee067388145d1fe357a496d8;hpb=3d90a1acbca41cdae5745ce36ddc19d18b52ad8d;p=mpd-sima.git diff --git a/sima/client.py b/sima/client.py index 525f268..c04f560 100644 --- a/sima/client.py +++ b/sima/client.py @@ -339,6 +339,18 @@ class PlayerClient(Player): def state(self): return str(self.status().get('state')) + @property + def playmode(self): + plm = {'repeat': None, + 'single': None, + 'random': None, + 'consume': None, + } + for key, val in self.status().items(): + if key in plm.keys(): + plm.update({key:bool(int(val))}) + return plm + @property def current(self): return self.currentsong()