diff options
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r-- | modules/localplay/mpd.controller.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index b81b6a95..1d850b48 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -109,8 +109,10 @@ class AmpacheMpd { * and then add them to MPD */ function add_songs($songs) { - /* Clear the playlist first */ - $this->clean_playlist(); + + if (is_null($this->_mpd->ClearPLIfStopped())) { + debug_event('mpd_add', 'Error: Unable to clear the MPD playlist ' . $this->_mpd->errStr,'1'); + } foreach ($songs as $song_id) { $song = new Song($song_id); |