From daa3c11e1bc4eb2d88934250f191a807646bc548 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Feb 2020 12:06:18 +0100 Subject: ytdl_hook: add length parameter to delay-loaded tracks only once This was done for each media type, so muxed tracks had it twice, which logged a dumb warning. Move it out of the per-media type loop. --- player/lua/ytdl_hook.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 2369c9640a..5cf64849b8 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -416,10 +416,10 @@ local function formats_to_edl(json, formats, use_all_formats) end hdr[#hdr + 1] = "!track_meta,title=" .. edl_escape(title) .. ",byterate=" .. byterate + end - if duration > 0 then - params = params .. ",length=" .. duration - end + if duration > 0 then + params = params .. ",length=" .. duration end end -- cgit v1.2.3