Hugo Beauzée-Luyssen pushed to branch 3.0.x at VideoLAN / VLC
Commits: 72fc254d by Pierre Ynard at 2021-11-25T14:15:22+01:00 youtube.lua: document an "n" descrambling transformation (cherry picked from commit 84ba044df10bb7e9cbf293fa6eefbd77e370c398) Signed-off-by: Hugo Beauzée-Luyssen <[email protected]> - - - - - ebbd474f by Pierre Ynard at 2021-11-25T14:15:35+01:00 youtube.lua: exponential form integers in "n" descrambling input data They now appear; add support for parsing them. Fixes #26317 (cherry picked from commit 6b5bc195a9811c6bb666ef3a30a100db7bb71092) Signed-off-by: Hugo Beauzée-Luyssen <[email protected]> - - - - - 1 changed file: - share/lua/playlist/youtube.lua Changes: ===================================== share/lua/playlist/youtube.lua ===================================== @@ -286,6 +286,7 @@ function n_descramble( nparam, js ) alphabet2 = { func = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", match = { + -- function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e} -- function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e} "^function%(%){[^}]-case 58:d%-=14;", "^function%(%){[^}]-case 58:d=44;", @@ -375,7 +376,9 @@ function n_descramble( nparam, js ) elseif string.match( datac, '^"[^"]*",' ) then el, datac = string.match( datac, '^"([^"]*)",(.*)$' ) -- Integer input data - elseif string.match( datac, '^-?%d+,' ) then + -- 1818016376,-648890305,-1200559E3, ... + elseif string.match( datac, '^%-?%d+,' ) or + string.match( datac, '^%-?%d+[eE]%-?%d+,' ) then el, datac = string.match( datac, "^(.-),(.*)$" ) el = tonumber( el ) -- Reference to "n" parameter array View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7b43e275feb8835393cc1bad6771f561b591b557...ebbd474f79cd145094d2a5c524487938fe412934 -- View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7b43e275feb8835393cc1bad6771f561b591b557...ebbd474f79cd145094d2a5c524487938fe412934 You're receiving this email because of your account on code.videolan.org.
_______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
