From abc6eac0e3a28317f8114f78016cfb2b4753003d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 1 Mar 2009 23:47:36 +0000 Subject: maybe fix #404, unconfirmed implemented #405 other misc cleanup --- stream.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'stream.php') diff --git a/stream.php b/stream.php index 1c3da0de..115be99c 100644 --- a/stream.php +++ b/stream.php @@ -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 ?> -- cgit