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

Pierre Ynard git at videolan.org
Tue Nov 3 01:41:21 CET 2020


vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov  3 00:46:46 2020 +0100| [36835fb8e5f643cebb2d71016f0d797ce13504cb] | committer: Pierre Ynard

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

Required with a new HTML code layout apparently getting phased in

(cherry picked from commit 611ba98b65cce0ac0addb5e3e811d22601313323)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

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

 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