Added shuffle method to music.mpd
This commit is contained in:
parent
ec38ecbaf3
commit
bbdf11b9ce
1 changed files with 10 additions and 2 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue