summaryrefslogtreecommitdiffstats
path: root/stream.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-05-15 13:26:30 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-05-15 13:26:30 +0000
commit809a3fc72ff5829b683a9167d6230e5fa101b6d3 (patch)
tree59aa3baab20b18554980f937bbe026bcbd5ba4ce /stream.php
parent4259d662decc9f128519daf7b46d975bd72f5320 (diff)
downloadampache-809a3fc72ff5829b683a9167d6230e5fa101b6d3.tar.gz
ampache-809a3fc72ff5829b683a9167d6230e5fa101b6d3.tar.bz2
ampache-809a3fc72ff5829b683a9167d6230e5fa101b6d3.zip
add download for video that does not work, and most likely break song downloads \o/
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream.php b/stream.php
index e1a65585..e8c00643 100644
--- a/stream.php
+++ b/stream.php
@@ -116,7 +116,7 @@ switch ($_REQUEST['action']) {
$urls = array($democratic->play_url());
break;
case 'download':
- $media_ids[] = $_REQUEST['song_id'];
+ $media_ids[] = $_REQUEST['song_id'];
default:
break;
} // end action switch
@@ -131,6 +131,7 @@ switch ($_REQUEST['method']) {
// Run the access check and exit if they are not allowed to download
if (!Access::check_function('batch_download')) { access_denied(); exit; }
+
// Format the zip file
$name = "AmpacheZip-" . date("m-d-Y",time());
$song_files = get_song_files($media_ids);