From 77ff88360b45edf9dfaf21a8e47f069bed1621dd Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 1 Jan 2020 21:16:27 +0100 Subject: [PATCH] music.mpd.play should add the resource at the beginning of the current tracklist and play it, not clear the whole tracklist. --- platypush/plugins/music/mpd/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/music/mpd/__init__.py b/platypush/plugins/music/mpd/__init__.py index 62763e68..9eaa07e6 100644 --- a/platypush/plugins/music/mpd/__init__.py +++ b/platypush/plugins/music/mpd/__init__.py @@ -94,8 +94,9 @@ class MusicMpdPlugin(MusicPlugin): """ if resource: - self.clear() - self.add(resource) + self.add(resource, position=0) + return self.play_pos(0) + return self._exec('play') @action