I have a set of videos I'm trying to download but they often have large quantities of whitespace in the video title. However, I want to have the titles named correctly in the downloaded filename (just without the additional whitespace).
I think this can be achieved with a postprocessor but I'm not sure how to implement it.
I had this command written down somewhere from a while back but it doesn't work now. Not sure if it ever did;
yt-dlp.exe "url" --postprocessor "re_replace: '\s+', ' ', 'title'" -o D:\download\%(upload_date)s_%(title)s.%(ext)s
But I get the error;
yt-dlp.exe: error: no such option: --postprocessor "re_replace: '\s+', ' ', 'title'"