[vlc-commits] lua: lastfm: fix matching

Francois Cartegnie git at videolan.org
Mon Oct 6 13:03:56 CEST 2014


vlc/vlc-2.1 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 21 17:44:20 2014 +0200| [2ea61fcd5a59d688f37acaa87ebb04ca6873e818] | committer: Jean-Baptiste Kempf

lua: lastfm: fix matching

(cherry picked from commit 4553ce6dac0b1aa9a46d6b033eb866581900f722)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=2ea61fcd5a59d688f37acaa87ebb04ca6873e818
---

 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 a46b92c..284c460 100644
--- a/share/lua/meta/art/03_lastfm.lua
+++ b/share/lua/meta/art/03_lastfm.lua
@@ -45,7 +45,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