]> git.sesse.net Git - vlc/blobdiff - share/lua/playlist/jamendo.lua
Lua SD: Jamendo - using album_image will give better results than album_id
[vlc] / share / lua / playlist / jamendo.lua
index 12813ef6e419857524e93af53fc42162f507d5be..647870ab7fd4df7ae40241965aaf9de3e620bf4b 100644 (file)
@@ -56,7 +56,7 @@ function parse()
             stream_url = track.children_map["stream"][1].children[1]
         end
         table.insert( tracks, {path=stream_url,
-                               arturl=track.children_map["album_id"] and "http://imgjam.com/albums/".. track.children_map["album_id"][1].children[1] .. "/covers/1.500.jpg" or ( track.children_map["album_image"] and track.children_map["album_image"][1].children[1] or nil ),
+                               arturl=track.children_map["album_image"] and track.children_map["album_image"][1].children[1] or ( track.children_map["album_id"] and "http://imgjam.com/albums/".. track.children_map["album_id"][1].children[1] .. "/covers/1.500.jpg" or nil ),
                                title=track.children_map["name"] and track.children_map["name"][1].children[1] or nil,
                                artist=track.children_map["artist_name"] and track.children_map["artist_name"][1].children[1] or nil,
                                album=track.children_map["album_name"] and track.children_map["album_name"][1].children[1] or nil,