summaryrefslogtreecommitdiffstats
path: root/lib/class/localplay.class.php
diff options
context:
space:
mode:
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