1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00

youtube.lua: declare proper local scope for working variables

This commit is contained in:
Pierre Ynard 2023-02-09 10:08:04 +01:00 committed by Jean-Baptiste Kempf
parent 91aac3a2fa
commit 12b739ef68

View File

@ -757,10 +757,10 @@ function parse()
or string.match( vlc.path, "/live%?" ) or string.match( vlc.path, "/live%?" )
or string.match( vlc.path, "/shorts/" ) or string.match( vlc.path, "/shorts/" )
then -- This is the HTML page's URL then -- This is the HTML page's URL
local js_url local path, title, description, artist, arturl, js_url
-- fmt is the format of the video -- fmt is the format of the video
-- (cf. http://en.wikipedia.org/wiki/YouTube#Quality_and_formats) -- (cf. http://en.wikipedia.org/wiki/YouTube#Quality_and_formats)
fmt = get_url_param( vlc.path, "fmt" ) local fmt = get_url_param( vlc.path, "fmt" )
while true do while true do
-- The new HTML code layout has fewer and longer lines; always -- The new HTML code layout has fewer and longer lines; always
-- use the long line workaround until we get more visibility. -- use the long line workaround until we get more visibility.