mpv-player / mpv-player/mpv

Make playlist/N/title writable

Open
#17,276 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Expected behavior of the wanted feature

When playing a playlist of URLs via ytdl-hook, it would be nice if there was a way to pre-load the titles of the videos that these URLs point to and display them in playlist visualizations, e.g. F8 or other OSCs. To achieve this, playlist/N/title should be writable so that a script can pre-load the titles using ytdl itself and then set them in MPV directly.

References:

Alternative behavior of the wanted feature

ytdl_hook.lua could implement this feature natively to request and set URL titles directly on playlist load. It probably makes sense to only do this for titles that start with something that would be passed to ytdl and that does not have an explicitly set title yet, e.g. via M3U EXTINF.

This does not make the initial feature request redundant, however.

Log File

No response

Sample Files

Just copy a few random URLs from YouTube or similar to a file and open them via mpv --playlist=file.txt.

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 playlist/N/title property and the ytdl_hook.lua entry point, then reproduce the case with mpv --playlist=file.txt using URLs whose titles are not preloaded. Compare the existing playlistmanager.lua behavior and verify that writable titles appear in playlist visualizations without replacing explicitly set titles.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.