diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 03:51:43 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 03:51:43 +0000 |
commit | b33aa8aec67006e641f2054e01b35a0bba316922 (patch) | |
tree | c8cd987885155b9462ea127d990cc9cdae1c3376 /batch.php | |
parent | 7b89ee50023a4a8ea60e9bc1789072d6a1db91e9 (diff) | |
download | ampache-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.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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': |