[vlc-commits] youtube.lua: stricter check for applying peek() long line workaround

Pierre Ynard git at videolan.org
Tue Nov 3 01:34:38 CET 2020


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov  3 00:46:46 2020 +0100| [611ba98b65cce0ac0addb5e3e811d22601313323] | committer: Pierre Ynard

youtube.lua: stricter check for applying peek() long line workaround

Required with a new HTML code layout apparently getting phased in

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

 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 965e17142b..f45ea82edc 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -321,7 +321,7 @@ function parse()
             -- The next line is the major configuration line that we need.
             -- It is very long and readline() is likely to fail on it due
             -- to #24957, so we need this instead.
-            if string.match( line, '<div id="player%-api">' ) then
+            if string.match( line, '^ *<div id="player%-api">' ) then
                 if not vlc.peek( 1 ) then break end
                 local eol
                 local pos = 0



More information about the vlc-commits mailing list