stats: show file format

Useful in particular with ytdl, where you never know what you get.
This commit is contained in:
wm4 2018-09-22 11:35:32 +02:00 committed by sfan5
parent 315004a38a
commit 9f6147a56f
1 changed files with 2 additions and 0 deletions

View File

@ -430,6 +430,8 @@ local function add_file(s)
append_property(s, "media-title", {prefix="Title:"})
end
append_property(s, "file-format", {prefix="Format/Protocol:"})
local ch_index = mp.get_property_number("chapter")
if ch_index and ch_index >= 0 then
append_property(s, "chapter-list/" .. tostring(ch_index) .. "/title", {prefix="Chapter:"})