music.mpd.play should add the resource at the beginning of the

current tracklist and play it, not clear the whole tracklist.
This commit is contained in:
Fabio Manganiello 2020-01-01 21:16:27 +01:00
parent 135cfc606c
commit 77ff88360b
1 changed files with 3 additions and 2 deletions

View File

@ -94,8 +94,9 @@ class MusicMpdPlugin(MusicPlugin):
""" """
if resource: if resource:
self.clear() self.add(resource, position=0)
self.add(resource) return self.play_pos(0)
return self._exec('play') return self._exec('play')
@action @action