ytdl_hook: use "format" as fallback for "format_note" for stream titles

"format_note" normally contains a semi-informative description of the
format. But some extractors, confusingly, have it in the "format" field.
This commit is contained in:
wm4 2020-02-21 16:38:17 +01:00
parent 2b9b77fcf3
commit dc82921012
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ local function formats_to_edl(json, formats, use_all_formats)
break
end
end
local title = track.format_note or ""
local title = track.format_note or track.format or ""
if #tracks > 1 then
if #title > 0 then
title = title .. " "