define("MPD_CMD_PASSWORD", "password");\r
define("MPD_CMD_TABLE", "list");\r
define("MPD_CMD_LISTS", "listplaylists");\r
+define("MPD_CMD_DELLIST", "rm");\r
\r
// Predefined MPD Response messages\r
define("MPD_RESPONSE_ERR", "ACK");\r
return $resp;\r
}\r
\r
+ /* PLDel() \r
+ * \r
+ * Deletes playlist <file>.m3u in the MPD playlist directory.\r
+ */\r
+ function PLDel($file) {\r
+ if ( $this->debugging ) echo "mpd->PLDel()\n";\r
+ $resp = $this->SendCommand(MPD_CMD_DELLIST,$file);\r
+ if ( $this->debugging ) echo "mpd->PLDel() / return\n";\r
+ return $resp;\r
+ }\r
+\r
/* PLClear() \r
* \r
* Empties the playlist.\r