[vlc-commits] [Git][videolan/vlc][3.0.x] youtube.lua: update for player config definition site change

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Nov 20 13:55:38 UTC 2022



Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC


Commits:
52df7ff8 by Pierre Ynard at 2022-11-19T08:38:20+01:00
youtube.lua: update for player config definition site change

Fixes #27529

(cherry picked from commit a0b3c43815328dd5e73485f912ee2fb9e46bfb4a)

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

- - - - -


1 changed file:

- share/lua/playlist/youtube.lua


Changes:

=====================================
share/lua/playlist/youtube.lua
=====================================
@@ -855,8 +855,10 @@ function parse()
             end
 
             -- JSON parameters, also formerly known as "swfConfig",
-            -- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ....
-            if string.match( line, "ytplayer%.config" ) then
+            -- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig",
+            -- "ytplayer.config" ...
+            if string.match( line, "ytInitialPlayerResponse ?= ?{" )
+                or string.match( line, "ytplayer%.config" ) then
 
                 -- Classic parameters - out of use since early 2020
                 if not fmt then



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/52df7ff818cc517a55220c6b89017fe51404c7c3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/52df7ff818cc517a55220c6b89017fe51404c7c3
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list