diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-22 17:44:10 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-22 17:44:10 +0000 |
commit | 67cbb218cd89ac6be9d1d55ca3799080daac1f5a (patch) | |
tree | 9aabddaed61a0bda1e477cf44c69400d1590779f /server | |
parent | d5ae71f551f0aebef1dbae518a116a1c86430ffb (diff) | |
download | ampache-67cbb218cd89ac6be9d1d55ca3799080daac1f5a.tar.gz ampache-67cbb218cd89ac6be9d1d55ca3799080daac1f5a.tar.bz2 ampache-67cbb218cd89ac6be9d1d55ca3799080daac1f5a.zip |
renamed xml-rpc acl to rpc, added default mime type of image/jpg and added config options for batch download to the fs, no garbage collection for non-completed downloads yet.
Diffstat (limited to 'server')
-rw-r--r-- | server/xml.server.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/server/xml.server.php b/server/xml.server.php index 682b0d55..db966441 100644 --- a/server/xml.server.php +++ b/server/xml.server.php @@ -61,6 +61,10 @@ switch ($_REQUEST['action']) { if ($_REQUEST['filter']) { Browse::set_filter('alpha_match',$_REQUEST['filter']); } + + // Set the offset + xmlData::set_offset($_REQUEST['offset']); + $artists = Browse::get_objects(); // echo out the resulting xml document echo xmlData::artists($artists); @@ -69,6 +73,10 @@ switch ($_REQUEST['action']) { $artist = new Artist($_REQUEST['filter']); $albums = $artist->get_albums(); + + // Set the offset + xmlData::set_offset($_REQUEST['offset']); + echo xmlData::albums($albums); break; case 'albums': @@ -80,12 +88,19 @@ switch ($_REQUEST['action']) { Browse::set_filter('alpha_match',$_REQUEST['filter']); } $albums = Browse::get_objects(); + + // Set the offset + xmlData::set_offset($_REQUEST['offset']); + echo xmlData::albums($albums); break; case 'album_songs': $album = new Album($_REQUEST['filter']); $songs = $album->get_songs(); + // Set the offset + xmlData::set_offset($_REQUEST['offset']); + echo xmlData::songs($songs); break; case 'genres': @@ -98,6 +113,9 @@ switch ($_REQUEST['action']) { } $genres = Browse::get_objects(); + // Set the offset + xmlData::set_offset($_REQUEST['offset']); + echo xmlData::genres($genres); break; case 'genre_artists': @@ -128,6 +146,9 @@ switch ($_REQUEST['action']) { } $songs = Browse::get_objects(); + // Set the offset + xmlData::set_offset($_REQUEST['offset']); + echo xmlData::songs($songs); break; default: |