From d2b70bbc619f3bfbc0b6593e0558f9ac2aadf6a2 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 27 Apr 2008 06:25:19 +0000 Subject: added genre and playlist count to the xmlapi handshake per devs request --- docs/CHANGELOG | 1 + lib/class/api.class.php | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 46cff16a..17543d55 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.4 + - Added Playlist and Genre Counts to the XMLAPI Handshake - Added ability to Add Search Results to playlist, or download if batch download is enabled - Fixed Remove one vote, removes all votes on democratic play diff --git a/lib/class/api.class.php b/lib/class/api.class.php index 50ca9609..f64c08fd 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -1,7 +1,7 @@ $token, 'api'=>self::$version, 'update'=>date("r",$row['update']), 'add'=>date("r",$row['add']), 'songs'=>$counts['song'], 'albums'=>$counts['album'], - 'artists'=>$counts['artist']); + 'artists'=>$counts['artist'], + 'genres'=>$counts['genre'], + 'playlists'=>$playlist['playlist']); } // match } // end while -- cgit