summaryrefslogtreecommitdiffstats
path: root/batch.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 03:51:43 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 03:51:43 +0000
commitb33aa8aec67006e641f2054e01b35a0bba316922 (patch)
treec8cd987885155b9462ea127d990cc9cdae1c3376 /batch.php
parent7b89ee50023a4a8ea60e9bc1789072d6a1db91e9 (diff)
downloadampache-b33aa8aec67006e641f2054e01b35a0bba316922.tar.gz
ampache-b33aa8aec67006e641f2054e01b35a0bba316922.tar.bz2
ampache-b33aa8aec67006e641f2054e01b35a0bba316922.zip
fixed issue with lack of timeout reset on some add to catalog functions and fixed batch downloads from active playlist
Diffstat (limited to 'batch.php')
-rw-r--r--batch.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/batch.php b/batch.php
index 4e974cfd..2005ad22 100644
--- a/batch.php
+++ b/batch.php
@@ -20,6 +20,7 @@
*/
require_once 'lib/init.php';
+ob_end_clean();
//test that batch download is permitted
if (!Access::check_function('batch_download')) {
@@ -33,7 +34,13 @@ set_time_limit(0);
switch ($_REQUEST['action']) {
case 'tmp_playlist':
$tmpPlaylist = new tmpPlaylist($_REQUEST['id']);
- $song_ids = $tmpPlaylist->get_items();
+ $data = $tmpPlaylist->get_items();
+
+ // We have to translate these :(
+ foreach ($data as $row) {
+ $song_ids[] = $row['0'];
+ }
+
$name = $GLOBALS['user']->username . ' - Playlist';
break;
case 'playlist':