diff options
author | LaserEyess <lasereyess@users.noreply.github.com> | 2020-04-15 13:27:37 -0400 |
---|---|---|
committer | Julian <Argon-@users.noreply.github.com> | 2020-04-16 23:13:46 +0200 |
commit | 34e7d9c2f44318bd5c3639666d5c3dd71283386b (patch) | |
tree | b14a4d45c3c08ff9f70bbcf67ffa9f0d924543fc /player/lua | |
parent | c364879e9fd347c98c6ab2c080b1bb6a15362175 (diff) | |
download | mpv-34e7d9c2f44318bd5c3639666d5c3dd71283386b.tar.bz2 mpv-34e7d9c2f44318bd5c3639666d5c3dd71283386b.tar.xz |
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-
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/stats.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |