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
// Misc Other Vars \r
var $mpd_class_version = "1.2";\r
\r
- var $debugging = TRUE; // Set to TRUE to turn extended debugging on.\r
+ var $debugging = FALSE; // Set to TRUE to turn extended debugging on.\r
var $errStr = ""; // Used for maintaining information about the last error message\r
\r
var $command_queue; // The list of commands for bulk command sending\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