From 34e7d9c2f44318bd5c3639666d5c3dd71283386b Mon Sep 17 00:00:00 2001 From: LaserEyess Date: Wed, 15 Apr 2020 13:27:37 -0400 Subject: 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- --- player/lua/stats.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player/lua') diff --git a/player/lua/stats.lua b/player/lua/stats.lua index b3e2320ac2..e76c496668 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -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 -- cgit v1.2.3