-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
Labels
bugSomething isn't workingSomething isn't working