Commit 0a66fee9 authored by Nicolas Chauvet's avatar Nicolas Chauvet Committed by Jean-Baptiste Kempf

lua: fix dailymotion parsing

Current dailymotion html uses "var __PLAYER_CONFIG__" instead of
"var config" to store data such as username, qualities and etc.
Others fields are unchanged.
Signed-off-by: Nicolas Chauvet's avatarNicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8c1b062c
......@@ -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\":{(.-%])}" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment