aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-02-18 23:16:16 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-02-18 23:17:37 +0530
commited66a17ef0b18159dda901f0122520c25ea95d6b (patch)
tree9ede046d0c8bd9eb5d0a9ff4c70fafd62313eec7 /yt_dlp/postprocessor/ffmpeg.py
parent5625e6073fc9bd0ca944eaa18b1038ca8eddabd7 (diff)
downloadhypervideo-pre-ed66a17ef0b18159dda901f0122520c25ea95d6b.tar.lz
hypervideo-pre-ed66a17ef0b18159dda901f0122520c25ea95d6b.tar.xz
hypervideo-pre-ed66a17ef0b18159dda901f0122520c25ea95d6b.zip
[FFmpegConcat] Abort on `--simulate`
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r--yt_dlp/postprocessor/ffmpeg.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index 05eeee2d7..d4495b4a2 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -1145,16 +1145,15 @@ class FFmpegConcatPP(FFmpegPostProcessor):
super().concat_files(in_files, out_file)
return in_files
- @PostProcessor._restrict_to(images=False)
+ @PostProcessor._restrict_to(images=False, simulated=False)
def run(self, info):
entries = info.get('entries') or []
- if (self.get_param('skip_download') or not any(entries)
- or self._only_multi_video and info['_type'] != 'multi_video'):
+ if not any(entries) or (self._only_multi_video and info['_type'] != 'multi_video'):
return [], info
elif any(len(entry) > 1 for entry in traverse_obj(entries, (..., 'requested_downloads')) or []):
raise PostProcessingError('Concatenation is not supported when downloading multiple separate formats')
- in_files = traverse_obj(entries, (..., 'requested_downloads', 0, 'filepath'))
+ in_files = traverse_obj(entries, (..., 'requested_downloads', 0, 'filepath')) or []
if len(in_files) < len(entries):
raise PostProcessingError('Aborting concatenation because some downloads failed')