summaryrefslogtreecommitdiffstats
path: root/stream.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 23:47:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 23:47:36 +0000
commitabc6eac0e3a28317f8114f78016cfb2b4753003d (patch)
tree39b7a55cb7ad45126d2cddc2f5aea09413ad1872 /stream.php
parenta8f79bb8f4c222334fbb4d2a216260d0de44a7e3 (diff)
downloadampache-abc6eac0e3a28317f8114f78016cfb2b4753003d.tar.gz
ampache-abc6eac0e3a28317f8114f78016cfb2b4753003d.tar.bz2
ampache-abc6eac0e3a28317f8114f78016cfb2b4753003d.zip
maybe fix #404, unconfirmed implemented #405 other misc cleanup
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php10
1 files changed, 3 insertions, 7 deletions
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
?>