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.
This commit is contained in:
1 parent
9f5b9011d6
commit
daa3c11e1b
1 file changed
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user