[vlc-commits] dailymotion.lua: fix art URL parsing

Pierre Ynard git at videolan.org
Sun Jan 27 00:29:19 CET 2019


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Jan 27 00:23:56 2019 +0100| [5ed25c887929b6f296f1acc49351edd51892d2f7] | committer: Pierre Ynard

dailymotion.lua: fix art URL parsing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ed25c887929b6f296f1acc49351edd51892d2f7
---

 share/lua/playlist/dailymotion.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/playlist/dailymotion.lua b/share/lua/playlist/dailymotion.lua
index 59be95fc03..2806989989 100644
--- a/share/lua/playlist/dailymotion.lua
+++ b/share/lua/playlist/dailymotion.lua
@@ -44,8 +44,8 @@ function parse()
                 description = vlc.strings.resolve_xml_special_chars( description )
             end
 		end
-		if string.match( line, "<link rel=\"thumbnail\" type=\"image/jpeg\"" ) then
-			_,_,arturl = string.find( line, "href=\"(.-)\"" )
+		if string.match( line, "<meta property=\"og:image\"" ) then
+			arturl = string.match( line, "content=\"(.-)\"" )
 		end
 
         if string.match( line, "var __PLAYER_CONFIG__ = {" ) then



More information about the vlc-commits mailing list