Commit 4553ce6d authored by Francois Cartegnie's avatar Francois Cartegnie

lua: lastfm: fix matching

parent e0a9173a
...@@ -49,7 +49,7 @@ function fetch_art() ...@@ -49,7 +49,7 @@ function fetch_art()
if not fd then return nil end if not fd then return nil end
page = fd:read( 65653 ) page = fd:read( 65653 )
fd = nil fd = nil
_, _, arturl = string.find( page, "<img width=\"174\" src=\"([^\"]+)\" class=\"art\" />\n" ) _, _, arturl = string.find( page, "<meta property=\"og:image\" content=\"([^\"]+)\" />" )
-- Don't use default album-art (not found one) -- Don't use default album-art (not found one)
if not arturl or string.find( arturl, "default_album_mega.png") then if not arturl or string.find( arturl, "default_album_mega.png") then
return nil return nil
......
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