summaryrefslogtreecommitdiffstats
path: root/lib/class/localplay.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-05 04:43:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-05 04:43:13 +0000
commitca34aa1edeb011baed4e2a6fabe56d90c0ba314d (patch)
tree19ef4bdd32a97f1effc6e50d2e06dba74fb398ba /lib/class/localplay.class.php
parentafe3b2fcb0183426c34620dfe2d68ed41f84d1d9 (diff)
downloadampache-ca34aa1edeb011baed4e2a6fabe56d90c0ba314d.tar.gz
ampache-ca34aa1edeb011baed4e2a6fabe56d90c0ba314d.tar.bz2
ampache-ca34aa1edeb011baed4e2a6fabe56d90c0ba314d.zip
* 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
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r--lib/class/localplay.class.php20
1 files changed, 20 insertions, 0 deletions
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
@@ -249,6 +250,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
* off, takes a 0/1 value