Commit 75809d1f authored by Pierre Ynard's avatar Pierre Ynard

cli: bring back long lost current playlist item marker

After 10 years of absence :(
parent 5eab2397
......@@ -215,7 +215,8 @@ function playlist(name,client,arg)
function playlist0(item,prefix)
local prefix = prefix or ""
if not item.flags.disabled then
local str = "| "..prefix..tostring(item.id).." - "..
local marker = ( item.id == vlc.playlist.current() ) and "*" or " "
local str = "|"..prefix..marker..tostring(item.id).." - "..
( item.name or item.path )
if item.duration > 0 then
str = str.." ("..common.durationtostring(item.duration)..")"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment