[vlc-commits] youtube.lua: new signature descrambling javascript URL parameter name
    Pierre Ynard 
    git at videolan.org
       
    Mon Oct 26 08:28:09 CET 2020
    
    
  
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Oct 26 08:09:26 2020 +0100| [43a5da94af1cdca9bf5ac9600508720550760668] | 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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43a5da94af1cdca9bf5ac9600508720550760668
---
 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