1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-19 11:39:28 +00:00

Now reencodes if custom postprocessor args

This commit is contained in:
Charlie Gillespie 2021-03-12 17:39:27 -05:00
parent a709b01f0f
commit d4a4d9b188

View file

@ -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