mirror of https://github.com/mpv-player/mpv
stats: show file format
Useful in particular with ytdl, where you never know what you get.
This commit is contained in:
parent
315004a38a
commit
9f6147a56f
|
@ -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:"})
|
||||
|
|
Loading…
Reference in New Issue