1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-11 17:39:38 +00:00

ytdl_hook: prefer "format" over "format_note" field for track titles

Much more verbose, but on the other hand format_note is useless for the
alphabetic site with fragmented DASH streams.
This commit is contained in:
wm4 2020-02-21 22:23:17 +01:00
parent dc82921012
commit c68b813678

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 track.format or ""
local title = track.format or track.format_note or ""
if #tracks > 1 then
if #title > 0 then
title = title .. " "