mpd: Rename muting output to 'Mute'
This commit is contained in:
parent
b65293d2bc
commit
db892e6974
@ -40,9 +40,9 @@ def outputs(context):
|
||||
|
||||
Shows information about all outputs.
|
||||
"""
|
||||
enabled = 0 if context.core.playback.get_mute().get() else 1
|
||||
muted = 1 if context.core.playback.get_mute().get() else 0
|
||||
return [
|
||||
('outputid', 0),
|
||||
('outputname', 'Default'),
|
||||
('outputenabled', enabled),
|
||||
('outputname', 'Mute'),
|
||||
('outputenabled', muted),
|
||||
]
|
||||
|
||||
@ -26,8 +26,8 @@ class AudioOutputHandlerTest(protocol.BaseTestCase):
|
||||
self.sendRequest('outputs')
|
||||
|
||||
self.assertInResponse('outputid: 0')
|
||||
self.assertInResponse('outputname: Default')
|
||||
self.assertInResponse('outputenabled: 1')
|
||||
self.assertInResponse('outputname: Mute')
|
||||
self.assertInResponse('outputenabled: 0')
|
||||
self.assertInResponse('OK')
|
||||
|
||||
def test_outputs_when_muted(self):
|
||||
@ -36,6 +36,6 @@ class AudioOutputHandlerTest(protocol.BaseTestCase):
|
||||
self.sendRequest('outputs')
|
||||
|
||||
self.assertInResponse('outputid: 0')
|
||||
self.assertInResponse('outputname: Default')
|
||||
self.assertInResponse('outputenabled: 0')
|
||||
self.assertInResponse('outputname: Mute')
|
||||
self.assertInResponse('outputenabled: 1')
|
||||
self.assertInResponse('OK')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user