Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time remaining function #149

Closed
vredesbyyrd opened this issue Sep 2, 2019 · 3 comments
Closed

Time remaining function #149

vredesbyyrd opened this issue Sep 2, 2019 · 3 comments

Comments

@vredesbyyrd
Copy link

Hi,

imho, having a function in the playerctl-cli to query a tracks remaining time would be a nice addition. Something like playerctl metadata --format "{{ duration(remaining-time) }}" --follow to view a countdown to 0:00.

I have used the library do get a counter of the remaining time, with varying degrees of success. But having a quick and easy solution with the cli could be handy. Lots of my collection includes long classical pieces, and imo just displaying remaining-time rather than position / length is a good way to free up needed space in a status bar.

@acrisci
Copy link
Member

acrisci commented Sep 2, 2019

Yeah this could be done.

@vredesbyyrd
Copy link
Author

Right on :)

I do not know if there is a standard nomenclature for this, but just glancing at mpv's library they use time-remaining.

@acrisci acrisci added this to the 2.3.1 milestone Oct 30, 2020
@acrisci acrisci closed this as completed in 119d0a5 Nov 2, 2020
@vredesbyyrd
Copy link
Author

Thanks for implementing this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants