mirror of https://github.com/mpv-player/mpv
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:
parent
2b9b77fcf3
commit
dc82921012
|
@ -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 .. " "
|
||||
|
|
Loading…
Reference in New Issue