vlc/vlc-2.1 | branch: master | Pierre Ynard <linkfa...@yahoo.fr> | Sat Dec 7 18:23:51 2013 +0100| [96b97f38d3ef6a9c0dc8a70d54bab4217426aaff] | committer: Pierre Ynard
youtube.lua: handle relative reference in javascript URL (cherry picked from commit 87fcede4b4839ff99dbc52b71664d28c02eb381e) Signed-off-by: Pierre Ynard <linkfa...@yahoo.fr> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=96b97f38d3ef6a9c0dc8a70d54bab4217426aaff --- share/lua/playlist/youtube.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua index 30da2f8..9cadd1f 100644 --- a/share/lua/playlist/youtube.lua +++ b/share/lua/playlist/youtube.lua @@ -269,6 +269,7 @@ function parse() local js_url = string.match( line, "\"js\": \"(.-)\"" ) if js_url then js_url = string.gsub( js_url, "\\/", "/" ) + js_url = string.gsub( js_url, "^//", vlc.access.."://" ) end if not fmt then _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits