From 7cd15d35e12a3d9e01d7ffc1e9de803b61050b85 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 31 Jan 2018 01:39:04 +0100 Subject: [PATCH] Return new status on random and repeat calls --- platypush/plugins/music/mpd/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index b86d7d5df..01f954695 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -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)