[vlc-commits] youtube.lua: update signature descrambling javascript parsing

Pierre Ynard git at videolan.org
Fri Feb 16 06:49:04 CET 2018


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Feb 16 06:46:01 2018 +0100| [0367559c33623e239a46cf904eba3c1aeb92aa83] | committer: Pierre Ynard

youtube.lua: update signature descrambling javascript parsing

More robust parsing of signature descrambling function name

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0367559c33623e239a46cf904eba3c1aeb92aa83
---

 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