diff options
author | wm4 <wm4@nowhere> | 2015-05-25 22:01:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-25 22:01:34 +0200 |
commit | 446a10020f9fd01c51332a1c7cf314e6dacfa65d (patch) | |
tree | d89433b2c7380895ae98f83cd0c8577aec46b521 /TOOLS/lua/status-line.lua | |
parent | 289705daaf2986cedd0a1ae994aeda73c4b4249e (diff) | |
download | mpv-446a10020f9fd01c51332a1c7cf314e6dacfa65d.tar.bz2 mpv-446a10020f9fd01c51332a1c7cf314e6dacfa65d.tar.xz |
TOOLS/lua/status-bar: update use of a deprecated property
Also mention that this code does not reflect the status line of current
mpv.
Diffstat (limited to 'TOOLS/lua/status-line.lua')
-rw-r--r-- | TOOLS/lua/status-line.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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)) |