summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-21 16:38:17 +0100
committerwm4 <wm4@nowhere>2020-02-21 16:38:17 +0100
commitdc82921012021cb8b9709c3f57c33c6337f55268 (patch)
tree98a87e33244049c1c28847cf2180b6663506d9fe
parent2b9b77fcf363df70a231083351abfef31e42ab1a (diff)
downloadmpv-dc82921012021cb8b9709c3f57c33c6337f55268.tar.bz2
mpv-dc82921012021cb8b9709c3f57c33c6337f55268.tar.xz
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.
-rw-r--r--player/lua/ytdl_hook.lua2
1 files changed, 1 insertions, 1 deletions
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 .. " "