summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2011-06-28 14:50:41 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2011-06-28 14:50:41 -0400
commitfb40835e42a5be92483192f83501cad909e72c79 (patch)
treec661c8a2ed6bd8cdc5af022dc50552cc8cecc5dc
parent1e05bfe554bb26c439fa19aa61ed692c858d773f (diff)
downloadampache-fb40835e42a5be92483192f83501cad909e72c79.tar.gz
ampache-fb40835e42a5be92483192f83501cad909e72c79.tar.bz2
ampache-fb40835e42a5be92483192f83501cad909e72c79.zip
Make the API return more data for songs
-rwxr-xr-xdocs/CHANGELOG1
-rw-r--r--lib/class/xmldata.class.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG
index 38b6267f..22b9011c 100755
--- a/docs/CHANGELOG
+++ b/docs/CHANGELOG
@@ -4,6 +4,7 @@
--------------------------------------------------------------------------
v.3.6-Alpha2
+ - API now returns year and bitrate for songs
- Fixed search_songs API method to use Search::run properly
- Fixed require_session when auth_type is 'local'
- Catalog filtering fix
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index 6a91ef00..6d6b822f 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -446,6 +446,8 @@ class xmlData {
$tag_string .
"\t<track>$song->track</track>\n" .
"\t<time>$song->time</time>\n" .
+ "\t<year>$song->year</year>\n" .
+ "\t<bitrate>$song->bitrate</bitrate>\n".
"\t<mime>$song->mime</mime>\n" .
"\t<url><![CDATA[" . Song::play_url($song->id) . "]]></url>\n" .
"\t<size>$song->size</size>\n" .