From 446a10020f9fd01c51332a1c7cf314e6dacfa65d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 25 May 2015 22:01:34 +0200 Subject: TOOLS/lua/status-bar: update use of a deprecated property Also mention that this code does not reflect the status line of current mpv. --- TOOLS/lua/status-line.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TOOLS/lua/status-line.lua b/TOOLS/lua/status-line.lua index 48597c3370..26ae8afb22 100644 --- a/TOOLS/lua/status-line.lua +++ b/TOOLS/lua/status-line.lua @@ -1,5 +1,7 @@ -- Rebuild the terminal status line as a lua script -- Be aware that this will require more cpu power! +-- Also, this is based on a rather old version of the +-- builtin mpv status line. -- Add a string to the status line function atsl(s) @@ -28,7 +30,7 @@ function update_status_line() atsl(mp.get_property_osd("time-pos")) atsl(" / "); - atsl(mp.get_property_osd("length")); + atsl(mp.get_property_osd("duration")); atsl(" (") atsl(mp.get_property_osd("percent-pos", -1)) -- cgit v1.2.3