mpv-player / mpv-player/mpv

Total time of files in playlist

Open
#4,460 25 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core:api core:file core:option-param-conf meta:feature-request priority:low
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

There are properties time-pos and time-remaining for the current file. The total time for the current file can be calculated with it, but it might be a good idea to add time-total.

My main issue though: I would like to query the time of other files in the playlist. There are properties for filenames and titles such as playlist/N/filename and playlist/N/title. I would suggest adding a property playlist/N/time-total to get the runtime of file N in the playlist.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing time-pos and time-remaining properties, then compare how playlist/N/filename and playlist/N/title are exposed. Done means the current file has a time-total property and playlist entries expose playlist/N/time-total with the expected runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.