summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-13 22:32:21 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-13 22:32:21 +0000
commit7372bddcd04404cfab6f18139a3162221a0f7508 (patch)
treedc6eb9069bcc62559ae58d9ad0a2b9b22a71b70e /server
parent2ff28d9f26856c19d6ec45c7e9d713ba4a35d9fb (diff)
downloadampache-7372bddcd04404cfab6f18139a3162221a0f7508.tar.gz
ampache-7372bddcd04404cfab6f18139a3162221a0f7508.tar.bz2
ampache-7372bddcd04404cfab6f18139a3162221a0f7508.zip
added album and artist functions require a single artist/album xml document
Diffstat (limited to 'server')
-rw-r--r--server/xml.server.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/xml.server.php b/server/xml.server.php
index 21eb34c7..3da772d1 100644
--- a/server/xml.server.php
+++ b/server/xml.server.php
@@ -96,6 +96,10 @@ switch ($_REQUEST['action']) {
ob_end_clean();
echo xmlData::artists($artists);
break;
+ case 'artist':
+ $uid = scrub_in($_REQUEST['filter']);
+ echo xmlData::artists(array($uid));
+ break;
case 'artist_albums':
$artist = new Artist($_REQUEST['filter']);
@@ -133,6 +137,10 @@ switch ($_REQUEST['action']) {
ob_end_clean();
echo xmlData::albums($albums);
break;
+ case 'album':
+ $uid = scrub_in($_REQUEST['filter']);
+ echo xmlData::albums(array($uid));
+ break;
case 'album_songs':
$album = new Album($_REQUEST['filter']);
$songs = $album->get_songs();