Skip to content

replace-in-metadata doesn't work. #63

@nightshadow92

Description

@nightshadow92

The --replace-in-metadata option requires three values: a field, a regex, and a replacement string, such as --replace-in-metadata "title" "&" "_".

ReplaceInMetadata is passed to yt-dlp as --replace-in-metadata "title '&' '_'".

yt-dlp interprets the entire string as the field name. If it is the last argument, yt-dlp exits with an error, but it can accept the next two arguments as the regex and replacement strings if possible.

For example, doing --replace-in-metadata "title '&' '_'" --sponsorblock-mark "all" results in the sponsorblock being skipped completely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions