0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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

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:"})