Commit 7deea188 authored by Konstantin Pavlov's avatar Konstantin Pavlov

Musicbrainz art fetcher: use version 2 API.

parent da62ca94
...@@ -54,6 +54,6 @@ function fetch_art() ...@@ -54,6 +54,6 @@ function fetch_art()
return nil return nil
end end
local query1 = "http://mb.videolan.org/ws/1/release/?type=xml&artist="..vlc.strings.encode_uri_component(meta["artist"]).."&title=\""..vlc.strings.encode_uri_component(meta["album"].."\"") local query1 = "http://mb.videolan.org/ws/2/release/?query=artist:"..vlc.strings.encode_uri_component(meta["artist"]).."%20AND%20release:\""..vlc.strings.encode_uri_component(meta["album"].."\"")
return try_query(query1) return try_query(query1)
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment