Commit 4c7f14a6 authored by Konstantin Pavlov's avatar Konstantin Pavlov Committed by Jean-Baptiste Kempf

Musicbrainz: look for content, not line number.

(cherry picked from commit ce16db86)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 44ae4d6c
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment