Commit 457b7315 authored by Pierre Ynard's avatar Pierre Ynard

youtube.lua: fix signature descrambling function pattern

It doesn't support special characters like $, which happen to be used.
parent 2c3ae1ba
......@@ -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