[vlc-commits] youtube.lua: new signature descrambling javascript URL parameter name
Pierre Ynard
git at videolan.org
Mon Oct 26 08:44:37 CET 2020
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Oct 26 08:09:26 2020 +0100| [bccc58cf348cdc0f9d37973b8856ceade8f79eb8] | committer: Pierre Ynard
youtube.lua: new signature descrambling javascript URL parameter name
Apparently the old parameter has been replaced by a new one, and is now
getting phased out. The signature descrambling javascript URL is still
available in several other places in the HTML page either way.
Fixes #25223
(cherry picked from commit 43a5da94af1cdca9bf5ac9600508720550760668)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=bccc58cf348cdc0f9d37973b8856ceade8f79eb8
---
share/lua/playlist/youtube.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 32b6972370..d211e30951 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -380,7 +380,8 @@ function parse()
-- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ...
if string.match( line, "ytplayer%.config" ) then
- local js_url = string.match( line, "\"js\": *\"(.-)\"" )
+ local js_url = string.match( line, '"jsUrl":"(.-)"' )
+ or string.match( line, "\"js\": *\"(.-)\"" )
if js_url then
js_url = string.gsub( js_url, "\\/", "/" )
-- Resolve URL
More information about the vlc-commits
mailing list