]> git.sesse.net Git - vlc/commitdiff
lua: fix cornercase on musicbrainz-lua script.
authorIlkka Ollakka <ileoo@videolan.org>
Mon, 19 Jan 2009 17:45:53 +0000 (19:45 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 19 Jan 2009 17:46:58 +0000 (19:46 +0200)
share/lua/meta/01_musicbrainz.lua

index a1ef0d79d4622fe3673fb7ac225719ce4438d687..f12139690585d097f709acc12d07fd990451adf6 100644 (file)
@@ -46,7 +46,7 @@ function fetch_art()
 
     -- FIXME: multiple results may be available
     _,_,asin = string.find( page, "<asin>(.-)</asin>" )
-    if asin ~= page then
+    if asin then
         return "http://images.amazon.com/images/P/"..asin..".01._SCLZZZZZZZ_.jpg"
     else
         return nil