summaryrefslogtreecommitdiffstats
path: root/lib/class/xmldata.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-17 04:12:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-17 04:12:15 +0000
commite95db50a7403657838033314d45cc578e77ed392 (patch)
tree1fb15cb5a8ede296b6342a4a2570a3a9bd2034a3 /lib/class/xmldata.class.php
parentbcc834d7fdabd0f52873a4f7696e065e3cf0f281 (diff)
downloadampache-e95db50a7403657838033314d45cc578e77ed392.tar.gz
ampache-e95db50a7403657838033314d45cc578e77ed392.tar.bz2
ampache-e95db50a7403657838033314d45cc578e77ed392.zip
added a few more fields to the xml documents passed by the api and included install doc patch
Diffstat (limited to 'lib/class/xmldata.class.php')
-rw-r--r--lib/class/xmldata.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index 5c3a6bb4..0337a216 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -137,6 +137,8 @@ class xmlData {
$string .= "<artist id=\"$artist->id\">\n" .
"\t<name><![CDATA[$artist->f_full_name]]></name>\n" .
+ "\t<albums>$artist->albums</albums>\n" .
+ "\t<songs>$artist->songs</songs>\n" .
"</artist>\n";
} // end foreach artists
@@ -271,6 +273,8 @@ class xmlData {
$song = new Song($song_id);
$song->format();
+ $art_url = Config::get('web_path') . '/image.php?id=' . $song->album . '&auth=' . scrub_out($_REQUEST['auth']);
+
$string .= "<song id=\"$song->id\">\n" .
"\t<title><![CDATA[$song->title]]></title>\n" .
"\t<artist id=\"$song->artist\"><![CDATA[$song->f_artist_full]]></artist>\n" .
@@ -280,6 +284,7 @@ class xmlData {
"\t<time>$song->time</time>\n" .
"\t<url><![CDATA[" . $song->get_url($_REQUEST['auth']) . "]]></url>\n" .
"\t<size>$song->size</size>\n" .
+ "\t<art><![CDATA[" . $art_url . "]]</art>\n" .
"</song>\n";
} // end foreach