From d4a4d9b1880a57d1a6c577e5a27422ce1b334fb2 Mon Sep 17 00:00:00 2001 From: Charlie Gillespie Date: Fri, 12 Mar 2021 17:39:27 -0500 Subject: [PATCH] Now reencodes if custom postprocessor args --- youtube_dl/postprocessor/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 48471bd65..2e642f547 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -330,7 +330,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor): # Don't overwrite files if the nopostoverwrites option is active or if # ffmpeg would just copy them anyway - if (new_path == path and acodec == 'copy') or (self._nopostoverwrites and os.path.exists(encodeFilename(new_path))): + if (new_path == path and acodec == 'copy' and not self._configuration_args()) or (self._nopostoverwrites and os.path.exists(encodeFilename(new_path))): self._downloader.to_screen('[ffmpeg] Post-process file %s exists, skipping' % new_path) return [], information