Daniel Kantor
unread,Nov 25, 2009, 10:50:22 AM11/25/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message as abuse
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pla...@googlegroups.com
As we talked about at the Summit, I wanted to start a dialogue here on an API to return a user's full library. This could be very useful for sites that instantly want to know what a user owns so that it could make recommendations, play the music, etc. Here is a proposal:
/api/library?type=all
{"genres" : ["Rap", "Rock"], "artists" : ["Madonna", "Michael Jackson"], "albums" : ["Thriller", "Bad"], "tracks" : [{"genre" : "Rock", "artist" : "Michael Jackson", "album" : "Thriller", "track" : "Beat It", "mimetype" : "audio/mpeg", "duration" : 179, "bitrate" : 320", "size" : 7186388, "source" : "local"}, {"genre" : "Rock", "artist" : "Michael Jackson", "album" : "Thriller",
"track" : "Billy Jean", "mimetype" : "audio/mpeg", "duration" : 210,
"bitrate" : 320", "size" : 8186388, "source" : "local"}]}
/api/library?type=genres
{"genres" : ["Rap", "Rock"]}
/api/library?type=artists
{"artists" : ["Madonna", "Michael Jackson"]}
/api/library?type=albums
{"albums" : ["Thriller", "Bad"]}
/api/library?type=tracks
{"tracks" : [{"genre" : "Rock", "artist" : "Michael Jackson", "album" :
"Thriller", "track" : "Beat It", "mimetype" : "audio/mpeg", "duration"
: 179, "bitrate" : 320", "size" : 7186388, "source" : "local"},
{"genre" : "Rock", "artist" : "Michael Jackson", "album" : "Thriller",
"track" : "Billy Jean", "mimetype" : "audio/mpeg", "duration" : 210,
"bitrate" : 320", "size" : 8186388, "source" : "local"}]}
/api/library?type=artists&genre=Rock
{"artists" : ["Michael Jackson"]}
/api/library?type=albums&genre=Rock&artist=Michael%20Jackson
{"albums" : ["Thriller", "Bad"]}
/api/library?type=tracks&genre=Rock&artist=Michael%20Jackson&album=Thriller
{"tracks" : [{"genre" : "Rock", "artist" : "Michael Jackson", "album" :
"Thriller", "track" : "Beat It", "mimetype" : "audio/mpeg", "duration"
: 179, "bitrate" : 320", "size" : 7186388, "source" : "local"},
{"genre" : "Rock", "artist" : "Michael Jackson", "album" : "Thriller",
"track" : "Billy Jean", "mimetype" : "audio/mpeg", "duration" : 210,
"bitrate" : 320", "size" : 8186388, "source" : "local"}]}
I think this should return local files, but it doesn't have to be restricted to that. If Playdar 'knows' a user's Napster library, it should return that as well. What do you guys think?