aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-07-26 09:28:37 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-07-26 09:33:12 +0530
commit3bec830a597e8c7ab0d9f4e1258dc4a1be0b1de4 (patch)
tree2f9ce05a3c7878f2ee2e7c79f7d58cfbab4470cd /yt_dlp/postprocessor/ffmpeg.py
parent7d0f6f0c4527aa1c1f99984c5b34d21ebc87228d (diff)
downloadhypervideo-pre-3bec830a597e8c7ab0d9f4e1258dc4a1be0b1de4.tar.lz
hypervideo-pre-3bec830a597e8c7ab0d9f4e1258dc4a1be0b1de4.tar.xz
hypervideo-pre-3bec830a597e8c7ab0d9f4e1258dc4a1be0b1de4.zip
Reject entire playlists faster with `--match-filter`
Rejected based on `playlist_id` etc can be checked before any entries are extracted Related: #4383
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r--yt_dlp/postprocessor/ffmpeg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index 67daf4424..c3b9ac7fa 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -1149,9 +1149,9 @@ class FFmpegConcatPP(FFmpegPostProcessor):
if len(in_files) < len(entries):
raise PostProcessingError('Aborting concatenation because some downloads failed')
- ie_copy = self._downloader._playlist_infodict(info)
exts = traverse_obj(entries, (..., 'requested_downloads', 0, 'ext'), (..., 'ext'))
- ie_copy['ext'] = exts[0] if len(set(exts)) == 1 else 'mkv'
+ ie_copy = collections.ChainMap({'ext': exts[0] if len(set(exts)) == 1 else 'mkv'},
+ info, self._downloader._playlist_infodict(info))
out_file = self._downloader.prepare_filename(ie_copy, 'pl_video')
files_to_delete = self.concat_files(in_files, out_file)