[vlc-commits] lua: lastfm: fix matching
    Francois Cartegnie 
    git at videolan.org
       
    Wed May 21 17:57:49 CEST 2014
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 21 17:44:20 2014 +0200| [4553ce6dac0b1aa9a46d6b033eb866581900f722] | committer: Francois Cartegnie
lua: lastfm: fix matching
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4553ce6dac0b1aa9a46d6b033eb866581900f722
---
 share/lua/meta/art/03_lastfm.lua |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/meta/art/03_lastfm.lua b/share/lua/meta/art/03_lastfm.lua
index 418146c..71db5bd 100644
--- a/share/lua/meta/art/03_lastfm.lua
+++ b/share/lua/meta/art/03_lastfm.lua
@@ -49,7 +49,7 @@ function fetch_art()
     if not fd then return nil end
     page = fd:read( 65653 )
     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)
     if not arturl or string.find( arturl, "default_album_mega.png") then
        return nil
    
    
More information about the vlc-commits
mailing list