forked from platypush/platypush
Return new status on random and repeat calls
This commit is contained in:
parent
968b71e946
commit
7cd15d35e1
1 changed files with 2 additions and 2 deletions
|
@ -68,13 +68,13 @@ class MusicMpdPlugin(MusicPlugin):
|
|||
if value is None:
|
||||
value = int(self.status().output['random'])
|
||||
value = 1 if value == 0 else 0
|
||||
self.client.random(value)
|
||||
return self._exec('random', value)
|
||||
|
||||
def repeat(self, value=None):
|
||||
if value is None:
|
||||
value = int(self.status().output['repeat'])
|
||||
value = 1 if value == 0 else 0
|
||||
self.client.repeat(value)
|
||||
return self._exec('repeat', value)
|
||||
|
||||
def add(self, resource):
|
||||
return self._exec('add', resource)
|
||||
|
|
Loading…
Reference in a new issue