From ca34aa1edeb011baed4e2a6fabe56d90c0ba314d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 5 Dec 2006 04:43:13 +0000 Subject: * Prevent Album art set on demo because people put porn in there :( * Fix Push functionality for the Democratic view stuff * Add footer div definition per Apex's request * Fix Config display with multi-value elements * Added plugin checking to update.php wq --- lib/class/localplay.class.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lib/class/localplay.class.php') diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 9dbc7958..ba5c3c2a 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -165,6 +165,7 @@ class Localplay { $this->_function_map['delete_all'] = $data['delete_all']; $this->_function_map['randomize'] = $data['randomize']; $this->_function_map['move'] = $data['move']; + $this->_function_map['add_url'] = $data['add_url']; } // _map_functions @@ -248,6 +249,25 @@ class Localplay { } // add + /** + * add_url + * This directly adds an array of URLs to the localplay module. This is really how I should + * have done add, will migrate to this eventually + */ + function add_url($urls) { + + $function = $this->_function_map['add_url']; + + if (!$this->_player->$function($urls)) { + debug_event('localplay','Error Unable to add urls, check ' . $this->type . ' controller','1'); + return false; + } + + + return true; + + } // add_url + /** * repeat * This turns the repeat feature of a localplay method on or -- cgit