feat: added destination_time option and deprecated total_time (#399)

`destination_time` accepts one of `total`, `playtime-remaining` (scaled by the current speed), `time-remaining` (remaining length of file).

`total_time` is deprecated, but still works as expected.
This commit is contained in:
Michael
2022-12-27 10:17:12 +02:00
committed by GitHub
parent ea371b5740
commit e66c8fbf88
3 changed files with 21 additions and 10 deletions

View File

@@ -333,8 +333,8 @@ function Timeline:render()
end
-- End time
if state.duration_or_remaining_time_human then
draw_timeline_text(bbx - spacing, fcy, 6, state.duration_or_remaining_time_human, time_opts)
if state.destination_time_human then
draw_timeline_text(bbx - spacing, fcy, 6, state.destination_time_human, time_opts)
end
end