X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Fmpd.py;h=f7e1e0f5b1a0d874db660834e06ba0b50355a4d4;hb=ab9952e0258426133f6bb0fe6395ec7464dfdd33;hp=26a07e5f2635bb4af3295911e9b0e36138f82cef;hpb=c1bda032095902bdcd183c530a9c4de28f3c828a;p=mpd-sima.git diff --git a/sima/plugins/mpd.py b/sima/plugins/mpd.py index 26a07e5..f7e1e0f 100644 --- a/sima/plugins/mpd.py +++ b/sima/plugins/mpd.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """ + Deal with MPD options ‑ idle and repeat mode """ # standard library import @@ -31,7 +32,9 @@ class MpdOptions(Plugin): self.log.info('MPD "repeat" mode activated.') self.daemon.enabled = False else: - self.daemon.enabled = True + if self.daemon.enabled is False: + self.log.debug('enabling queuing (leaving single|repeat mode)') + self.daemon.enabled = True def shutdown(self): pass