YoutubeDLSharp
YoutubeDLSharp copied to clipboard
replace-in-metadata doesn't work.
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.