Skip to content

player/command: refactor loadfile and loadlist commands to use flags - #16837

Merged
Dudemanguy merged 1 commit into
mpv-player:masterfrom
Dudemanguy:loadfile-flags
Jan 10, 2026
Merged

player/command: refactor loadfile and loadlist commands to use flags#16837
Dudemanguy merged 1 commit into
mpv-player:masterfrom
Dudemanguy:loadfile-flags

Conversation

@Dudemanguy

Copy link
Copy Markdown
Member

We should have done this ages ago. These commands essentially consist of a combination of a load action and whether or not playback should be started. The old -play aliases are kept for backwards compatibility.

Didn't thoroughly test or anything yet.

@kasper93

Copy link
Copy Markdown
Member

I even recall having such patch somewhere.

Comment thread DOCS/man/input.rst Outdated
immediately start playback even if the playlist was previously empty. Adding
the ``play`` flag to them forces playback to start.

The following arguments are considered deprecated and were the old way

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arguments? the insertion index and option list are not deprecated.

@Dudemanguy Dudemanguy Sep 29, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"values" is the better word to use here.

@kasper93 kasper93 added this to the Release v0.42.0 milestone Oct 10, 2025

@kasper93 kasper93 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

However, needs rebase.

@Dudemanguy

Copy link
Copy Markdown
Member Author

Yeah been meaning to actually do a few tests and rebasing it later. Should hopefully get to that this week.

We should have done this ages ago. These commands essentially consist of
a combination of a load action and whether or not playback should be
started. The old `-play` aliases are kept for backwards compatibility.
@Dudemanguy

Copy link
Copy Markdown
Member Author

Finally got around to testing it. Works as expected on my end.

@kasper93 kasper93 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Dudemanguy
Dudemanguy merged commit 11c020f into mpv-player:master Jan 10, 2026
27 checks passed
@Dudemanguy
Dudemanguy deleted the loadfile-flags branch January 10, 2026 01:01
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.

3 participants