mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-02-07 02:29:48 +00:00
[postprocessor/ffmpeg] minor improvement to delete source on -x --no-post-overwrites
This commit is contained in:
parent
8fe5d54eb7
commit
4a5419750e
@ -329,7 +329,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
|||||||
if (new_path == path
|
if (new_path == path
|
||||||
or (self._nopostoverwrites and os.path.exists(encodeFilename(new_path)))):
|
or (self._nopostoverwrites and os.path.exists(encodeFilename(new_path)))):
|
||||||
self._downloader.to_screen('[ffmpeg] Post-process file %s exists, skipping' % 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:
|
try:
|
||||||
self._downloader.to_screen('[ffmpeg] Destination: ' + new_path)
|
self._downloader.to_screen('[ffmpeg] Destination: ' + new_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user