From d560bb1c7b7e675ad72af0731df18757bf9d5700 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 19 Aug 2007 07:34:11 +0000 Subject: fixed single downloads and that annoying minor css issue with albums of the moment --- stream.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'stream.php') diff --git a/stream.php b/stream.php index 24e8d5d6..38b950fe 100644 --- a/stream.php +++ b/stream.php @@ -153,6 +153,8 @@ switch ($_REQUEST['action']) { $options = array('limit' => $_REQUEST['random'], 'random_type' => $_REQUEST['random_type'],'size_limit'=>$_REQUEST['size_limit']); $song_ids = get_random_songs($options, $matchlist); break; + case 'download': + $song_ids[] = $_REQUEST['song_id']; default: break; } // end action switch @@ -175,16 +177,15 @@ switch ($_REQUEST['method']) { break; case 'stream': default: - $stream_type = Config::get('playlist_type'); - - /* For non-stream/downsample methos we need to so something else */ - switch ($GLOBALS['user']->prefs['play_type']) { - case 'stream': + // See if we need a special streamtype + switch ($_REQUEST['action']) { + case 'download': + $stream_type = 'download'; break; default: $stream_type = $GLOBALS['user']->prefs['play_type']; break; - } + } /* Start the Stream */ $stream = new Stream($stream_type,$song_ids); -- cgit