From 4a5419750e41e675b3b3d037f0d00526da21948f Mon Sep 17 00:00:00 2001 From: kikuyan Date: Thu, 24 Jun 2021 14:03:41 +0900 Subject: [PATCH] [postprocessor/ffmpeg] minor improvement to delete source on `-x --no-post-overwrites` --- 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 5f7298345..f91dfeed1 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -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)