From 8db09be51acf616482c5ae6c794de4dce397a1e0 Mon Sep 17 00:00:00 2001 From: "Ricardo Constantino (:RiCON)" Date: Sun, 5 Jun 2016 13:57:58 +0100 Subject: stats: always print title if different from filename --- player/lua/stats.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3