1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 18:57:35 +00:00

TOOLS/lua/status-bar: update use of a deprecated property

Also mention that this code does not reflect the status line of current
mpv.
This commit is contained in:
wm4 2015-05-25 22:01:34 +02:00
parent 289705daaf
commit 446a10020f

View File

@ -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))