[vlc-commits] Musicbrainz art fetcher: use version 2 API.

Konstantin Pavlov git at videolan.org
Fri Jan 20 14:38:20 CET 2012


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Jan 20 14:24:47 2012 +0400| [7deea1888112c69aa61d30947f288eb3b3220426] | committer: Konstantin Pavlov

Musicbrainz art fetcher: use version 2 API.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7deea1888112c69aa61d30947f288eb3b3220426
---

 share/lua/meta/art/04_musicbrainz.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/lua/meta/art/04_musicbrainz.lua b/share/lua/meta/art/04_musicbrainz.lua
index 6386e36..fefbf26 100644
--- a/share/lua/meta/art/04_musicbrainz.lua
+++ b/share/lua/meta/art/04_musicbrainz.lua
@@ -54,6 +54,6 @@ function fetch_art()
         return nil
     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)
 end



More information about the vlc-commits mailing list