X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Fcore%2Fmpdoptions.py;h=fe368bd1e01766f4ae810c8d7cdc430ab624b818;hb=80162143f725cbe604f7241e4dfc4929833470e5;hp=ab5a4cb458f2b6368c8a28ca528a06a4071dec31;hpb=3d90a1acbca41cdae5745ce36ddc19d18b52ad8d;p=mpd-sima.git diff --git a/sima/plugins/core/mpdoptions.py b/sima/plugins/core/mpdoptions.py index ab5a4cb..fe368bd 100644 --- a/sima/plugins/core/mpdoptions.py +++ b/sima/plugins/core/mpdoptions.py @@ -43,10 +43,10 @@ class MpdOptions(Plugin): Called on player changes """ player = self.daemon.player - if player.status().get('single') == str(1): + if player.playmode.get('single'): self.log.info('MPD "single" mode activated.') self.daemon.enabled = False - elif player.status().get('repeat') == str(1): + elif player.playmode.get('repeat'): self.log.info('MPD "repeat" mode activated.') self.daemon.enabled = False else: