diff options
author | wm4 <wm4@nowhere> | 2020-02-21 16:38:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-21 16:38:17 +0100 |
commit | dc82921012021cb8b9709c3f57c33c6337f55268 (patch) | |
tree | 98a87e33244049c1c28847cf2180b6663506d9fe /player/lua/ytdl_hook.lua | |
parent | 2b9b77fcf363df70a231083351abfef31e42ab1a (diff) | |
download | mpv-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.
Diffstat (limited to 'player/lua/ytdl_hook.lua')
-rw-r--r-- | player/lua/ytdl_hook.lua | 2 |
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 .. " " |