Commit d0705857 authored by Pierre Ynard's avatar Pierre Ynard

youtube.lua: update signature descrambling javascript parsing

Signature descrambling call is now wrapped in URL decoding/encoding
calls.
parent 4d2bee52
......@@ -107,11 +107,11 @@ function js_descramble( sig, js_url )
end
-- Look for the descrambler function's name
-- k.s&&f.set(k.sp,DK(k.s));
-- k.s&&f.set(k.sp,(0,window.encodeURIComponent)(DK((0,window.decodeURIComponent)(k.s))));
-- k.s (from stream map field "s") holds the input scrambled signature
-- k.sp (from stream map field "sp") holds a parameter name (normally
-- "signature") to set with the output, descrambled signature
local descrambler = js_extract( js, "%.set%([^,]-%.sp,([^)]-)%(" )
local descrambler = js_extract( js, "%.set%([^,]-%.sp,[^;]-%((..)%(" )
if not descrambler then
vlc.msg.dbg( "Couldn't extract youtube video URL signature descrambling function name" )
return sig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment