[vlc-commits] youtube.lua: update signature descrambling javascript parsing
Pierre Ynard
git at videolan.org
Thu Mar 9 17:04:42 CET 2017
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Mar 9 16:57:16 2017 +0100| [c0ceb661d54f8d53c64089d8f3fe5bd2b3a8e815] | committer: Pierre Ynard
youtube.lua: update signature descrambling javascript parsing
Avoid mismatch of signature descrambling call
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c0ceb661d54f8d53c64089d8f3fe5bd2b3a8e815
---
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 8bfcb97..7b63f91 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -108,7 +108,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