- if player.status().get('single') == str(1):
- self.log.info('MPD "single" mode activated.')
- self.daemon.enabled = False
- elif player.status().get('repeat') == str(1):
- self.log.info('MPD "repeat" mode activated.')
- self.daemon.enabled = False
+ if player.playmode.get('single'):
+ 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'):
+ if self.daemon.config.getboolean('sima', 'repeat_disable_queue'):
+ self.log.info('MPD "repeat" mode activated.')
+ self.daemon.enabled = False