vlc/vlc-2.2 | branch: master | Pierre Ynard <[email protected]> | Fri Jun 24 
03:50:24 2016 +0200| [83baa49871d4c437707d8dd32134d2729999cdf3] | committer: 
Felix Paul Kühne

youtube.lua: update signature descrambling javascript parsing

Quick fix as definitions now start on the beginning of lines

(cherry picked from commit feb851a03443d8f8d3068107a31995bf2158d881)

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

 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 6743f79..8c6708c 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