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

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 15:09:27 2012 +0400| [4c7f14a6895c206ef82054d4aa2754173405e4f7] | committer: Jean-Baptiste Kempf

Musicbrainz: look for content, not line number.
(cherry picked from commit ce16db86ce9e72aa33f299401953d8ba023ca0a6)

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

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

 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