summaryrefslogtreecommitdiffstats
path: root/batch.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-04 02:45:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-04 02:45:03 +0000
commit19276f57a9eeacae7829629baa35fcb28d77419f (patch)
tree35c2d658e6cb4e3b9e1a1706e0e3d3ab8af88f0d /batch.php
parent848a1bc5388301e128cb5c2c4d8dcb5d06721bb4 (diff)
downloadampache-19276f57a9eeacae7829629baa35fcb28d77419f.tar.gz
ampache-19276f57a9eeacae7829629baa35fcb28d77419f.tar.bz2
ampache-19276f57a9eeacae7829629baa35fcb28d77419f.zip
fixed genre and artist view... mostly also fixed batch downloads
Diffstat (limited to 'batch.php')
-rw-r--r--batch.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/batch.php b/batch.php
index f64ce002..4e974cfd 100644
--- a/batch.php
+++ b/batch.php
@@ -33,7 +33,7 @@ set_time_limit(0);
switch ($_REQUEST['action']) {
case 'tmp_playlist':
$tmpPlaylist = new tmpPlaylist($_REQUEST['id']);
- $song_ids = $tmpPlaylist->get_objects();
+ $song_ids = $tmpPlaylist->get_items();
$name = $GLOBALS['user']->username . ' - Playlist';
break;
case 'playlist':
@@ -46,6 +46,11 @@ switch ($_REQUEST['action']) {
$song_ids = $album->get_songs();
$name = $album->name;
break;
+ case 'artist':
+ $artist = new Artist($_REQUEST['id']);
+ $song_ids = $artist->get_songs();
+ $name = $artist->name;
+ break;
case 'genre':
$id = scrub_in($_REQUEST['id']);
$genre = new Genre($id);