[vlc-commits] youtube.lua: update signature descrambling javascript parsing
Pierre Ynard
git at videolan.org
Fri Feb 16 06:51:35 CET 2018
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Feb 16 06:46:01 2018 +0100| [97e9166d7b58b721f2adb306b84aa4b03d323517] | committer: Pierre Ynard
youtube.lua: update signature descrambling javascript parsing
More robust parsing of signature descrambling function name
(cherry picked from commit 0367559c33623e239a46cf904eba3c1aeb92aa83)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=97e9166d7b58b721f2adb306b84aa4b03d323517
---
share/lua/playlist/youtube.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index a7eeeb375d..866c888a3d 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -1,7 +1,7 @@
--[[
$Id$
- Copyright © 2007-2017 the VideoLAN team
+ Copyright © 2007-2018 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -107,8 +107,8 @@ function js_descramble( sig, js_url )
end
-- Look for the descrambler function's name
- -- c&&a.set("signature",br(c));
- local descrambler = js_extract( js, "%.set%(\"signature\",([^)]-)%(" )
+ -- k.s&&f.set(k.sp||"signature",DK(k.s));
+ local descrambler = js_extract( js, "%.set%([^,]-\"signature\",([^)]-)%(" )
if not descrambler then
vlc.msg.dbg( "Couldn't extract youtube video URL signature descrambling function name" )
return sig
More information about the vlc-commits
mailing list