From b6733b3e6a1cae2872528734a0b5b40ab3e4a417 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 29 Dec 2017 12:44:49 +0100 Subject: [PATCH] Also start playback when adding a playlist --- platypush/plugins/music/mpd/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index f8bede18df..cb0518b71f 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -68,7 +68,8 @@ class MusicMpdPlugin(MusicPlugin): return self._exec('add', resource) def playlistadd(self, playlist): - return self._exec('playlistadd', playlist) + self._exec('playlistadd', playlist) + return self.play() def clear(self): return self._exec('clear')