[vlc-commits] Musicbrainz: look for content, not line number.

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 15:09:27 2012 +0400| [ce16db86ce9e72aa33f299401953d8ba023ca0a6] | committer: Konstantin Pavlov

Musicbrainz: look for content, not line number.

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

 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 fefbf26..a26f292 100644
--- a/share/lua/meta/art/04_musicbrainz.lua
+++ b/share/lua/meta/art/04_musicbrainz.lua
@@ -38,7 +38,7 @@ function try_query(query)
     local page = s:read( 65653 )
 
     -- FIXME: multiple results may be available
-    asin = string.find( page, "<asin>(%w+)</asin>" )
+    _, _, asin = string.find( page, "<asin>(%w+)</asin>" )
     if asin then
         vlc.msg.dbg( asin )
         return "http://images.amazon.com/images/P/"..asin..".01._SCLZZZZZZZ_.jpg"



More information about the vlc-commits mailing list