[vlc-devel] [PATCH] lua: fix dailymotion parsing
Nicolas Chauvet
kwizart at gmail.com
Sun Aug 6 12:08:12 CEST 2017
Signed-off-by: Nicolas Chauvet <kwizart at gmail.com>
---
share/lua/playlist/dailymotion.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/playlist/dailymotion.lua b/share/lua/playlist/dailymotion.lua
index 28bf033c77..f117b0d5de 100644
--- a/share/lua/playlist/dailymotion.lua
+++ b/share/lua/playlist/dailymotion.lua
@@ -47,7 +47,7 @@ function parse()
_,_,arturl = string.find( line, "href=\"(.-)\"" )
end
- if string.match( line, "var config = {" ) then
+ if string.match( line, "var __PLAYER_CONFIG__ = {" ) then
artist = string.match( line, '"username":"([^"]+)"' )
local streams = string.match( line, "\"qualities\":{(.-%])}" )
--
2.13.3
More information about the vlc-devel
mailing list