From dc82921012021cb8b9709c3f57c33c6337f55268 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Feb 2020 16:38:17 +0100 Subject: 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. --- player/lua/ytdl_hook.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 6eadcc29a6..223e9cb7fc 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -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 .. " " -- cgit v1.2.3