summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/ajax.server.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/ajax.server.php b/server/ajax.server.php
index cc6ae332..15ba8588 100644
--- a/server/ajax.server.php
+++ b/server/ajax.server.php
@@ -176,15 +176,19 @@ switch ($action) {
case 'clear_all':
$GLOBALS['user']->playlist->clear();
break;
+ case 'live_stream':
+ $object = new Radio($_REQUEST['id']);
+ // Confirm its a valid ID
+ if ($object->name) {
+ $GLOBALS['user']->playlist->add_object($object->id,'radio');
+ }
+ break;
default:
case 'song':
$GLOBALS['user']->playlist->add_object($_REQUEST['id']);
break;
} // end switch
-
-
-
$results['topbar-playlist'] = ajax_include('show_playlist_bar.inc.php');
$results['rightbar'] = ajax_include('rightbar.inc.php');
echo xml_from_array($results);