Return new status on random and repeat calls

This commit is contained in:
Fabio Manganiello 2018-01-31 01:39:04 +01:00
parent 968b71e946
commit 7cd15d35e1
1 changed files with 2 additions and 2 deletions

View File

@ -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)