X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Fcore%2Fmpdoptions.py;h=48c2b3c89a2acd08b5d7a348d5a8a8cfbc4edabf;hb=HEAD;hp=fe368bd1e01766f4ae810c8d7cdc430ab624b818;hpb=80162143f725cbe604f7241e4dfc4929833470e5;p=mpd-sima.git diff --git a/sima/plugins/core/mpdoptions.py b/sima/plugins/core/mpdoptions.py index fe368bd..48c2b3c 100644 --- a/sima/plugins/core/mpdoptions.py +++ b/sima/plugins/core/mpdoptions.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2013, 2014 Jack Kaliko +# Copyright (c) 2013, 2014 kaliko # # This file is part of sima # @@ -18,7 +18,7 @@ # # """ - Deal with MPD options ‑ idle and repeat mode + Deal with MPD options ‑ single and repeat mode """ # standard library import @@ -44,11 +44,13 @@ class MpdOptions(Plugin): """ player = self.daemon.player if player.playmode.get('single'): - self.log.info('MPD "single" mode activated.') - self.daemon.enabled = False + if self.daemon.config.getboolean('sima', 'single_disable_queue'): + self.log.info('MPD "single" mode activated.') + self.daemon.enabled = False elif player.playmode.get('repeat'): - self.log.info('MPD "repeat" mode activated.') - self.daemon.enabled = False + if self.daemon.config.getboolean('sima', 'repeat_disable_queue'): + self.log.info('MPD "repeat" mode activated.') + self.daemon.enabled = False else: if self.daemon.enabled is False: self.log.debug('enabling queuing (leaving single|repeat mode)')