Skip to content

options: add --playlist-inherit-options option - #18302

Merged
kasper93 merged 3 commits into
mpv-player:masterfrom
na-na-hi:playlist-inherit-params
Jul 26, 2026
Merged

options: add --playlist-inherit-options option#18302
kasper93 merged 3 commits into
mpv-player:masterfrom
na-na-hi:playlist-inherit-params

Conversation

@na-na-hi

Copy link
Copy Markdown
Contributor

This allows controlling whether the files in a playlist inherit the per-file options of the playlist file itself. For playlists created by --autocreate-playlist, --playlist-inherit-options=current allows inheriting only for the item the playlist is created from.

Fixes: #11150
Fixes: #15381

na-na-hi added 3 commits July 26, 2026 01:18
Helper function to set file local options for all entries. Will be used
in the next commit.
Currently, if a playlist file is played and replaced by its contents,
the per-file options of the playlist file are ignored.

This commit makes these options inherited for its contents so they work
as expected.
This allows controlling whether the files in a playlist inherit the
per-file options of the playlist file itself. For playlists created
by --autocreate-playlist, --playlist-inherit-options=current allows
inheriting only for the item the playlist is created from.
@na-na-hi
na-na-hi force-pushed the playlist-inherit-params branch from 3ab97bf to d8dcf3c Compare July 26, 2026 05:53
@kasper93
kasper93 merged commit 731229b into mpv-player:master Jul 26, 2026
34 of 35 checks passed
@groszdaniel

Copy link
Copy Markdown

This should be enabled by default IMO. That's what anyone would expect, especially in the directory/zip file case (#11150). (I'm not sure there's even a need to make an option to disable it. I don't see a natural use case.)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File-local options are ignored when using autocreate-playlist={filter,same} Per-file options not applied to directories

3 participants