Skip to content

command: allow metadata to be set manually#17603

Merged
kasper93 merged 1 commit intompv-player:masterfrom
myQwil:cmd_set_metadata
Apr 18, 2026
Merged

command: allow metadata to be set manually#17603
kasper93 merged 1 commit intompv-player:masterfrom
myQwil:cmd_set_metadata

Conversation

@myQwil
Copy link
Copy Markdown
Contributor

@myQwil myQwil commented Mar 18, 2026

If track metadata is stored in an external file, it could be read and set by a script. For example:

local function on_preloaded()
    -- ... metadata reading logic, then
    for k, v in pairs(meta) do
        mp.set_property("metadata/by-key/" .. k, v)
    end
end

@myQwil myQwil changed the title command: allow metadata to be set manually [RFC] command: allow metadata to be set manually Mar 19, 2026
@myQwil myQwil changed the title [RFC] command: allow metadata to be set manually command: allow metadata to be set manually Mar 19, 2026
@guidocella
Copy link
Copy Markdown
Contributor

This can probably replace global_tags in EDL.

@kasper93
Copy link
Copy Markdown
Member

LGTM. Please add interface-changes and maybe a note in docs about this.

@myQwil myQwil force-pushed the cmd_set_metadata branch from 0584642 to ef8eef8 Compare April 18, 2026 03:35
@myQwil myQwil force-pushed the cmd_set_metadata branch from ef8eef8 to 3a58b98 Compare April 18, 2026 03:36
@kasper93 kasper93 merged commit d0df98f into mpv-player:master Apr 18, 2026
29 of 30 checks passed
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