]> git.sesse.net Git - vlc/commitdiff
jamendo: also get the artist along with the list of songs for one album.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 17 Aug 2010 19:38:07 +0000 (21:38 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 17 Aug 2010 19:38:07 +0000 (21:38 +0200)
share/lua/sd/jamendo.lua

index d76d0052bcb1a108bc26f198f4aab1a5c9449e27..5eff78e5e4095d50c90c3602775bbde0407d05b9 100644 (file)
@@ -62,7 +62,7 @@ function add_top_albums( album_order, tag, max_results )
     for _, album in ipairs( tree.children ) do
         simplexml.add_name_maps( album )
         local album_node = node:add_subitem(
-                { path     = 'http://api.jamendo.com/get2/id+name+duration+album_name+album_genre+album_dates+album_image/track/xml/?album_id=' .. album.children_map["id"][1].children[1],
+                { path     = 'http://api.jamendo.com/get2/id+name+duration+artist_name+album_name+album_genre+album_dates+album_image/track/xml/track_album+album_artist/?album_id=' .. album.children_map["id"][1].children[1],
                   title    = album.children_map["artist_name"][1].children[1] .. ' - ' .. album.children_map["name"][1].children[1],
                   arturl   = album.children_map["album_image"][1].children[1] })
     end