[vlc-devel] commit: lua: fix cornercase on musicbrainz-lua script. (Ilkka Ollakka )

git version control git at videolan.org
Mon Jan 19 18:47:08 CET 2009


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Jan 19 19:45:53 2009 +0200| [38c77e3c57e5d0931cbf6b25f7dcde3ac58ea481] | committer: Ilkka Ollakka 

lua: fix cornercase on musicbrainz-lua script.

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

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

diff --git a/share/lua/meta/01_musicbrainz.lua b/share/lua/meta/01_musicbrainz.lua
index a1ef0d7..f121396 100644
--- a/share/lua/meta/01_musicbrainz.lua
+++ b/share/lua/meta/01_musicbrainz.lua
@@ -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




More information about the vlc-devel mailing list