[vlc-commits] [Git][videolan/vlc][master] youtube.lua: update for player config definition site change
    Steve Lhomme (@robUx4) 
    gitlab at videolan.org
       
    Sat Nov 19 07:36:48 UTC 2022
    
    
  
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
a0b3c438 by Pierre Ynard at 2022-11-19T07:19:13+00:00
youtube.lua: update for player config definition site change
Fixes #27529
- - - - -
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/a0b3c43815328dd5e73485f912ee2fb9e46bfb4a
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a0b3c43815328dd5e73485f912ee2fb9e46bfb4a
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