mirror of https://github.com/mpv-player/mpv
stats: move chapter/edition info below title
It is more consistent for editions/chapters to go below either the title or filename. They are all descriptive strings about the media itself and not file metadata like filesize. Suggested by Argon-
This commit is contained in:
parent
c364879e9f
commit
34e7d9c2f4
|
@ -472,9 +472,6 @@ local function add_file(s)
|
||||||
append_property(s, "media-title", {prefix="Title:"})
|
append_property(s, "media-title", {prefix="Title:"})
|
||||||
end
|
end
|
||||||
|
|
||||||
local fs = append_property(s, "file-size", {prefix="Size:"})
|
|
||||||
append_property(s, "file-format", {prefix="Format/Protocol:", nl=fs and "" or o.nl})
|
|
||||||
|
|
||||||
local editions = mp.get_property_number("editions")
|
local editions = mp.get_property_number("editions")
|
||||||
local edition = mp.get_property_number("current-edition")
|
local edition = mp.get_property_number("current-edition")
|
||||||
local ed_cond = (edition and editions > 1)
|
local ed_cond = (edition and editions > 1)
|
||||||
|
@ -495,6 +492,9 @@ local function add_file(s)
|
||||||
indent=" ", prefix_sep=" ", no_prefix_markup=true})
|
indent=" ", prefix_sep=" ", no_prefix_markup=true})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local fs = append_property(s, "file-size", {prefix="Size:"})
|
||||||
|
append_property(s, "file-format", {prefix="Format/Protocol:", nl=fs and "" or o.nl})
|
||||||
|
|
||||||
local demuxer_cache = mp.get_property_native("demuxer-cache-state", {})
|
local demuxer_cache = mp.get_property_native("demuxer-cache-state", {})
|
||||||
if demuxer_cache["fw-bytes"] then
|
if demuxer_cache["fw-bytes"] then
|
||||||
demuxer_cache = demuxer_cache["fw-bytes"] -- returns bytes
|
demuxer_cache = demuxer_cache["fw-bytes"] -- returns bytes
|
||||||
|
|
Loading…
Reference in New Issue