Permalink
Browse files

add album art url to api music responses

  • Loading branch information...
1 parent a341422 commit 2916d1f9b64a29f7f6ea15bec4a5ec756393451e @tmm1 tmm1 committed Dec 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/play/app/api.rb
View
@@ -163,7 +163,8 @@ def music_response(song)
'song_title' => song.title,
'album_name' => song.album_name,
'song_download_path' => "/song/#{song.id}/download",
- 'album_download_path' => "/album/#{song.album_id}/download"
+ 'album_download_path' => "/album/#{song.album_id}/download",
+ 'alumb_art_url' => song.album.art_url
}.to_json
end
end

0 comments on commit 2916d1f

Please sign in to comment.