vlc | branch: master | Pierre Ynard <[email protected]> | Fri Jun 24 03:50:24 
2016 +0200| [feb851a03443d8f8d3068107a31995bf2158d881] | committer: Pierre Ynard

youtube.lua: update signature descrambling javascript parsing

Quick fix as definitions now start on the beginning of lines

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

 share/lua/playlist/youtube.lua |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 9d87b8b..7520d48 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -111,8 +111,8 @@ function js_descramble( sig, js_url )
     end
 
     -- Fetch the code of the descrambler function
-    -- var 
Go=function(a){a=a.split("");Fo.sH(a,2);Fo.TU(a,28);Fo.TU(a,44);Fo.TU(a,26);Fo.TU(a,40);Fo.TU(a,64);Fo.TR(a,26);Fo.sH(a,1);return
 a.join("")};
-    local rules = js_extract( js, "[ 
,]"..descrambler.."=function%([^)]*%){(.-)};",
+    -- 
Go=function(a){a=a.split("");Fo.sH(a,2);Fo.TU(a,28);Fo.TU(a,44);Fo.TU(a,26);Fo.TU(a,40);Fo.TU(a,64);Fo.TR(a,26);Fo.sH(a,1);return
 a.join("")};
+    local rules = js_extract( js, 
"^"..descrambler.."=function%([^)]*%){(.-)};",
                                   -- Legacy/alternate format
                                   "function "..descrambler.."%([^)]*%){(.-)}" )
     if not rules then

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to