mirror of
https://github.com/mpv-player/mpv
synced 2025-03-01 20:00:37 +00:00
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:"})
|
append_property(s, "media-title", {prefix="Title:"})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
append_property(s, "file-format", {prefix="Format/Protocol:"})
|
||||||
|
|
||||||
local ch_index = mp.get_property_number("chapter")
|
local ch_index = mp.get_property_number("chapter")
|
||||||
if ch_index and ch_index >= 0 then
|
if ch_index and ch_index >= 0 then
|
||||||
append_property(s, "chapter-list/" .. tostring(ch_index) .. "/title", {prefix="Chapter:"})
|
append_property(s, "chapter-list/" .. tostring(ch_index) .. "/title", {prefix="Chapter:"})
|
||||||
|
Loading…
Reference in New Issue
Block a user