]> git.sesse.net Git - vlc/commitdiff
MusicBrainz: use the MB release ID if exists
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 6 Feb 2014 20:40:03 +0000 (21:40 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 6 Feb 2014 20:40:03 +0000 (21:40 +0100)
share/lua/meta/art/00_musicbrainz.lua

index 0523ec45b15cce6b57cadd0f54763b315af85141..a94cca91c14636b20bb75023fafb53b6bcb93d1d 100644 (file)
@@ -63,10 +63,8 @@ function fetch_art()
 
     local releaseid = nil
 
-    for _, k in ipairs({"MUSICBRAINZ_ALBUMID", "MusicBrainz Album Id"}) do
-        if meta[k] then
-            releaseid = meta[k]
-        end
+    if meta["MB_ALBUMID"] then
+        releaseid = meta["MB_ALBUMID"]
     end
 
     if not releaseid and meta["artist"] and meta["album"] then