diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-04 02:45:03 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-04 02:45:03 +0000 |
commit | 19276f57a9eeacae7829629baa35fcb28d77419f (patch) | |
tree | 35c2d658e6cb4e3b9e1a1706e0e3d3ab8af88f0d /batch.php | |
parent | 848a1bc5388301e128cb5c2c4d8dcb5d06721bb4 (diff) | |
download | ampache-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.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |