[vlc-commits] youtube.lua: update signature descrambling javascript parsing
Pierre Ynard
git at videolan.org
Thu Mar 9 17:18:51 CET 2017
vlc/vlc-2.2 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Mar 9 16:57:16 2017 +0100| [694b9b4eeef348ea1d344c77d81ab12b1a804bdb] | committer: Pierre Ynard
youtube.lua: update signature descrambling javascript parsing
Avoid mismatch of signature descrambling call
(cherry picked from commit c0ceb661d54f8d53c64089d8f3fe5bd2b3a8e815)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=694b9b4eeef348ea1d344c77d81ab12b1a804bdb
---
share/lua/playlist/youtube.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index c81ddc0..b386d90 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -102,7 +102,7 @@ function js_descramble( sig, js_url )
-- Look for the descrambler function's name
-- c&&a.set("signature",br(c));
- local descrambler = js_extract( js, "%.set%(\"signature\",(.-)%(" )
+ 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