diff options
Diffstat (limited to 'stream.php')
-rw-r--r-- | stream.php | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -67,7 +67,7 @@ switch ($_REQUEST['action']) { } // end switch on type break; case 'single_song': - $media_ids[] = scrub_in($_REQUEST['song_id']); + $media_ids[] = array('song',scrub_in($_REQUEST['song_id'])); break; case 'your_popular_songs': $media_ids = get_popular_songs($_REQUEST['limit'], 'your', $GLOBALS['user']->id); @@ -92,10 +92,6 @@ switch ($_REQUEST['action']) { $album = new Album($_REQUEST['album_id']); $media_ids = $album->get_songs(); break; - case 'random_genre': - $genre = new Genre($_REQUEST['genre']); - $media_ids = $genre->get_random_songs(); - break; case 'playlist': $playlist = new Playlist($_REQUEST['playlist_id']); $media_ids = $playlist->get_songs($_REQUEST['song']); @@ -168,7 +164,7 @@ switch ($_REQUEST['method']) { if (is_array($urls)) { $stream->manual_url_add($urls); } - $stream->start(); - break; + $stream->start(); + } // end method switch ?> |