Added shuffle method to music.mpd

This commit is contained in:
Fabio Manganiello 2018-08-06 22:44:02 +02:00
parent ec38ecbaf3
commit bbdf11b9ce

View file

@ -166,9 +166,9 @@ class MusicMpdPlugin(MusicPlugin):
@action
def random(self, value=None):
"""
Set shuffle mode
Set random mode
:param value: If set, set the random/shuffle state this value (true/false). Default: None (toggle current state)
:param value: If set, set the random state this value (true/false). Default: None (toggle current state)
:type value: bool
"""
@ -191,6 +191,14 @@ class MusicMpdPlugin(MusicPlugin):
value = 1 if value == 0 else 0
return self._exec('repeat', value)
@action
def shuffle(self):
"""
Shuffles the current playlist
"""
return self._exec('shuffle')
@action
def add(self, resource):
"""