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

Konstantin Pavlov git at videolan.org
Sat Jan 21 22:20:58 CET 2012


vlc/vlc-1.2 | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Jan 20 14:24:47 2012 +0400| [44ae4d6c01e33f345207778c6a426028bf4f8e2d] | committer: Jean-Baptiste Kempf

Musicbrainz art fetcher: use version 2 API.
(cherry picked from commit 7deea1888112c69aa61d30947f288eb3b3220426)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=44ae4d6c01e33f345207778c6a426028bf4f8e2d
---

 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