1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-09-28 14:25:29 +00:00

[postprocessor/ffmpeg] minor improvement to delete source on -x --no-post-overwrites

This commit is contained in:
kikuyan 2021-06-24 14:03:41 +09:00
parent 8fe5d54eb7
commit 4a5419750e

View file

@ -329,7 +329,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
if (new_path == path
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
return [] if new_path == path else [path], information
try:
self._downloader.to_screen('[ffmpeg] Destination: ' + new_path)