[vlc-commits] dailymotion.lua: fix art URL parsing
Pierre Ynard
git at videolan.org
Sun Jan 27 00:35:05 CET 2019
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Jan 27 00:23:56 2019 +0100| [3885d85a0a9d784d160e0040635f864241ab88b6] | committer: Pierre Ynard
dailymotion.lua: fix art URL parsing
(cherry picked from commit 5ed25c887929b6f296f1acc49351edd51892d2f7)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3885d85a0a9d784d160e0040635f864241ab88b6
---
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