Commit ce51ba40 authored by Pierre Ynard's avatar Pierre Ynard Committed by Felix Paul Kühne

youtube.lua: fix signature descrambling function pattern

It doesn't support special characters like $, which happen to be used.

(cherry picked from commit 457b73154ab210737acb68673830244e07b587e9)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 19ca9885
......@@ -88,10 +88,8 @@ function js_descramble( sig, js_url )
-- Buffer lines for later, so we don't have to make a second
-- HTTP request later
table.insert( lines, line )
-- c&&(b.signature=ij(c));
-- descrambler = string.match( line, "%.signature=(.-)%(" )
-- descrambler = string.match( line, "%.sig%|%|(.-)%(" )
descrambler = string.match( line, "%.sig||([a-zA-Z0-9]+)%(" )
-- c&&a.set("signature",br(c));
descrambler = string.match( line, "%.set%(\"signature\",(.-)%(" )
end
-- Fetch the code of the descrambler function. The function is
......
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