[vlc-commits] lua: fix dailymotion parsing
vlc | branch: master | Nicolas Chauvet| Sun Aug 6 12:59:15 2017 +0200| [0a66fee9984d573ac190a11181a3016784c219ba] | committer: 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 Signed-off-by: Jean-Baptiste Kempf > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a66fee9984d573ac190a11181a3016784c219ba --- 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\":{(.-%])}" ) ___ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits
[vlc-commits] lua: fix dailymotion parsing
vlc | branch: master | Nicolas Chauvet| Sun Aug 6 12:59:15 2017 +0200| [b1afd0d6938196e03c5fd0304bd72fbbe46b31fa] | committer: 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 Signed-off-by: Jean-Baptiste Kempf > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1afd0d6938196e03c5fd0304bd72fbbe46b31fa --- 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\":{(.-%])}" ) ___ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits