summaryrefslogtreecommitdiffstats
path: root/batch.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-11 06:45:43 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-11 06:45:43 +0000
commit691d6bb0a374713d8f971bf6717b6205be5eb9cf (patch)
treea0b69991dd6ff7f28aea6dee2f88ace4c476b58e /batch.php
parentc11aa971ca9c8863ca61ae3ea0c83af68e61bffc (diff)
downloadampache-691d6bb0a374713d8f971bf6717b6205be5eb9cf.tar.gz
ampache-691d6bb0a374713d8f971bf6717b6205be5eb9cf.tar.bz2
ampache-691d6bb0a374713d8f971bf6717b6205be5eb9cf.zip
fixed playlist download selected so it actually gives you what you ask for
Diffstat (limited to 'batch.php')
-rw-r--r--batch.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/batch.php b/batch.php
index f0f5f8a3..f8fa5368 100644
--- a/batch.php
+++ b/batch.php
@@ -45,6 +45,10 @@
if ($type == 'album') {
$song_ids = get_songs_from_type($type,$_POST['song'],$_REQUEST['artist_id']);
}
+ elseif ($_REQUEST['playlist_id']) {
+ $playlist = new Playlist($_REQUEST['playlist_id']);
+ $song_ids = $playlist->get_songs($_REQUEST['song']);
+ }
else {
$song_ids = $_POST['song'];
}