]> git.sesse.net Git - vlc/commitdiff
Youtube: fix playback of recent pages
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Nov 2014 12:43:56 +0000 (13:43 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Nov 2014 12:49:15 +0000 (13:49 +0100)
share/lua/playlist/youtube.lua

index 24c4cf7759396ca13ba0aef829ce9961756ff8e3..11e5cac9963dbc6be49eb6a3340882d5f6da6a05 100644 (file)
@@ -89,7 +89,9 @@ function js_descramble( sig, js_url )
         -- HTTP request later
         table.insert( lines, line )
         -- c&&(b.signature=ij(c));
-        descrambler = string.match( line, "%.signature=(.-)%(" )
+        -- descrambler = string.match( line, "%.signature=(.-)%(" )
+        -- descrambler = string.match( line, "%.sig%|%|(.-)%(" )
+        descrambler = string.match( line, "%.sig||([a-zA-Z0-9]+)%(" )
     end
 
     -- Fetch the code of the descrambler function. The function is