summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-01 07:22:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-01 07:22:07 +0000
commita02b8ce20746ef5449e661ac8ffdb4e1974e65c2 (patch)
treedb1e0b2a6ef1b9fa7bfaa65e2fdb8eb22286f063 /modules/localplay/mpd.controller.php
parentaf554e6296eff9ee08ad59597f27378e4b2a8db8 (diff)
downloadampache-a02b8ce20746ef5449e661ac8ffdb4e1974e65c2.tar.gz
ampache-a02b8ce20746ef5449e661ac8ffdb4e1974e65c2.tar.bz2
ampache-a02b8ce20746ef5449e661ac8ffdb4e1974e65c2.zip
fixed clean, added lang to installer (thx ros) and cleaned up catalog display a bit and mojoed lang list
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r--modules/localplay/mpd.controller.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php
index b7b461ed..cd2f686c 100644
--- a/modules/localplay/mpd.controller.php
+++ b/modules/localplay/mpd.controller.php
@@ -75,7 +75,7 @@ class AmpacheMpd {
/* Optional Functions */
$map['move'] = 'move';
- //$map['delete_all'] = 'clear_playlist';
+ $map['delete_all'] = 'clear_playlist';
return $map;
@@ -151,6 +151,18 @@ class AmpacheMpd {
/**
+ * clear_playlist
+ * This deletes the entire MPD playlist... nuff said
+ */
+ function clear_playlist() {
+
+ if (is_null($this->_mpd->PLClear())) { return false; }
+
+ return true;
+
+ } // clear_playlist
+
+ /**
* play
* This just tells MPD to start playing, it does not
* take any arguments