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:
LaserEyess 2020-04-15 13:27:37 -04:00 committed by Julian
parent c364879e9f
commit 34e7d9c2f4
1 changed files with 3 additions and 3 deletions

View File

@ -472,9 +472,6 @@ local function add_file(s)
append_property(s, "media-title", {prefix="Title:"})
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 edition = mp.get_property_number("current-edition")
local ed_cond = (edition and editions > 1)
@ -495,6 +492,9 @@ local function add_file(s)
indent=" ", prefix_sep=" ", no_prefix_markup=true})
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", {})
if demuxer_cache["fw-bytes"] then
demuxer_cache = demuxer_cache["fw-bytes"] -- returns bytes