mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 18:29:40 +02:00
- Added Live Stream (Internet Radio) support
- New Database Update corrects some issues and makes internet radio possible - Fixed ratings - Added new Transcode preference, doesn't do anything yet - New "Radio Stations" browse type
This commit is contained in:
parent
84eca6a3d5
commit
216e691dfa
22 changed files with 563 additions and 59 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue