vlc | branch: master | Pierre Ynard <[email protected]> | Sat Jan 31 10:28:45 2015 +0100| [457b73154ab210737acb68673830244e07b587e9] | committer: Pierre Ynard
youtube.lua: fix signature descrambling function pattern It doesn't support special characters like $, which happen to be used. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=457b73154ab210737acb68673830244e07b587e9 --- share/lua/playlist/youtube.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua index 2b7d40c..ada99ac 100644 --- a/share/lua/playlist/youtube.lua +++ b/share/lua/playlist/youtube.lua @@ -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 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
