summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-14 05:38:17 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-14 05:38:17 +0000
commit1cf69f04be778cdf377c53ca9ab2182d27756f94 (patch)
treec762a13e7a95afe03ad149b3a14d1fdbbf3d8597 /modules/localplay/mpd.controller.php
parent29b7de37028e9b923591ff0a2a810203037c174e (diff)
downloadampache-1cf69f04be778cdf377c53ca9ab2182d27756f94.tar.gz
ampache-1cf69f04be778cdf377c53ca9ab2182d27756f94.tar.bz2
ampache-1cf69f04be778cdf377c53ca9ab2182d27756f94.zip
some minor MPD changes and bug fixes for localplay
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r--modules/localplay/mpd.controller.php6
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);