From fb40835e42a5be92483192f83501cad909e72c79 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Tue, 28 Jun 2011 14:50:41 -0400 Subject: Make the API return more data for songs --- docs/CHANGELOG | 1 + lib/class/xmldata.class.php | 2 ++ 2 files changed, 3 insertions(+) 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$song->track\n" . "\t\n" . + "\t$song->year\n" . + "\t$song->bitrate\n". "\t$song->mime\n" . "\tid) . "]]>\n" . "\t$song->size\n" . -- cgit