diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-19 07:34:11 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-19 07:34:11 +0000 |
commit | d560bb1c7b7e675ad72af0731df18757bf9d5700 (patch) | |
tree | 75bb0a543caecb8779280aadb84cf47c8066f94c /stream.php | |
parent | f92b79ec098ad56690dce0c615a25dcac3955fba (diff) | |
download | ampache-d560bb1c7b7e675ad72af0731df18757bf9d5700.tar.gz ampache-d560bb1c7b7e675ad72af0731df18757bf9d5700.tar.bz2 ampache-d560bb1c7b7e675ad72af0731df18757bf9d5700.zip |
fixed single downloads and that annoying minor css issue with albums of the moment
Diffstat (limited to 'stream.php')
-rw-r--r-- | stream.php | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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); |