diff options
Diffstat (limited to 'server/xml.server.php')
-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: |