1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-20 23:18:57 +00:00

[FFmpegExtractAudioPP] Fix --no-overwrites not working for post-processed files

- Make --no-overwrites option also prevent overwriting of post-processed files
- Fix buggy logic that checked for non-existent orig_path
- Add overwrites parameter to FFmpegExtractAudioPP constructor
- Add comprehensive tests for both --no-overwrites and --no-post-overwrites
- Maintain backward compatibility with existing --no-post-overwrites behavior

Fixes issue where --no-overwrites had no effect on extracted audio files
This commit is contained in:
midlaj-muhammed
2025-06-08 16:42:07 +05:30
parent aa863ddab9
commit 9e65eeaa72
3 changed files with 82 additions and 3 deletions

View File

@@ -653,6 +653,7 @@ def get_postprocessors(opts):
'preferredcodec': opts.audioformat,
'preferredquality': opts.audioquality,
'nopostoverwrites': opts.nopostoverwrites,
'overwrites': opts.overwrites,
}
if opts.remuxvideo:
yield {