Commit ce16db86 authored by Konstantin Pavlov's avatar Konstantin Pavlov

Musicbrainz: look for content, not line number.

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