summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Constantino (:RiCON) <wiiaboo@gmail.com>2016-06-05 13:57:58 +0100
committerwm4 <wm4@nowhere>2017-10-09 20:40:31 +0200
commit8db09be51acf616482c5ae6c794de4dce397a1e0 (patch)
treed34e3aa3514e37da1865c0c53c71cf83851d17d5
parentc387b1db6f7d6b761d47b8b47f2ff9c138b19088 (diff)
downloadmpv-8db09be51acf616482c5ae6c794de4dce397a1e0.tar.bz2
mpv-8db09be51acf616482c5ae6c794de4dce397a1e0.tar.xz
stats: always print title if different from filename
-rw-r--r--player/lua/stats.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index 3eafbdf304..d09125f378 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -91,7 +91,9 @@ function add_file(s)
s[sec] = ""
append_property(s, sec, "filename", {prefix="File:", nl="", indent=""})
- append_property(s, sec, "metadata/title", {prefix="Title:"})
+ if not (mp.get_property_osd("filename") == mp.get_property_osd("media-title")) then
+ append_property(s, sec, "media-title", {prefix="Title:"})
+ end
append_property(s, sec, "chapter", {prefix="Chapter:"})
if append_property(s, sec, "cache-used", {prefix="Cache:"}) then
append_property(s, sec, "demuxer-cache-duration",