summaryrefslogtreecommitdiffstats
path: root/modules/localplay/httpq.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-10-29 13:44:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-10-29 13:44:06 +0000
commit0665818aeaf221e1b60fe8bc1de71b12270122de (patch)
treef50c9ea9bd252bb66d3ca2b3ca84c8633d21daa9 /modules/localplay/httpq.controller.php
parente855988af2850d8d8105b56bc0ce9eae8b7d9dc0 (diff)
downloadampache-0665818aeaf221e1b60fe8bc1de71b12270122de.tar.gz
ampache-0665818aeaf221e1b60fe8bc1de71b12270122de.tar.bz2
ampache-0665818aeaf221e1b60fe8bc1de71b12270122de.zip
fixed the fatal error on the controllers page
Diffstat (limited to 'modules/localplay/httpq.controller.php')
-rw-r--r--modules/localplay/httpq.controller.php43
1 files changed, 3 insertions, 40 deletions
diff --git a/modules/localplay/httpq.controller.php b/modules/localplay/httpq.controller.php
index fde12a9d..7c637930 100644
--- a/modules/localplay/httpq.controller.php
+++ b/modules/localplay/httpq.controller.php
@@ -64,43 +64,6 @@ class AmpacheHttpq extends localplay_controller {
} // get_version
- /**
- * function_map
- * This function returns a named array of the functions
- * that this player supports and their names in this local
- * class. This is a REQUIRED function
- */
- function function_map() {
-
- $map = array();
-
- /* Required Functions */
- $map['add'] = 'add_songs';
- $map['delete'] = 'delete_songs';
- $map['play'] = 'play';
- $map['stop'] = 'stop';
- $map['get'] = 'get_songs';
- $map['status'] = 'get_status';
- $map['connect'] = 'connect';
-
- /* Recommended Functions */
- $map['skip'] = 'skip';
- $map['next'] = 'next';
- $map['prev'] = 'prev';
- $map['pause'] = 'pause';
- $map['volume_up'] = 'volume_up';
- $map['volume_down'] = 'volume_down';
- $map['random'] = 'random';
- $map['repeat'] = 'loop';
-
- /* Optional Functions */
- $map['delete_all'] = 'clear_playlist';
- $map['add_url'] = 'add_url';
-
- return $map;
-
- } // function_map
-
/**
* is_installed
* This returns true or false if MPD controller is installed
@@ -207,11 +170,11 @@ class AmpacheHttpq extends localplay_controller {
} // add
/**
- * delete
+ * delete_track
* This must take an array of ID's (as passed by get function) from Ampache
* and delete them from Httpq
*/
- public function delete($objects) {
+ public function delete_track($object_id) {
/* Default to true */
$return = true;
@@ -230,7 +193,7 @@ class AmpacheHttpq extends localplay_controller {
return $return;
- } // delete_songs
+ } // delete_track
/**
* clear_playlist