aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-11 14:25:31 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-11 14:25:31 +0530
commit41712218233ae144d55f841818df9c63d2bd23d3 (patch)
treeda46e9f4b85125c57a8daf949161dd50c5ad1bb5 /yt_dlp/postprocessor/ffmpeg.py
parenteaeca38fc4790257cc16fc77f1d06d89156a5b2c (diff)
downloadhypervideo-pre-41712218233ae144d55f841818df9c63d2bd23d3.tar.lz
hypervideo-pre-41712218233ae144d55f841818df9c63d2bd23d3.tar.xz
hypervideo-pre-41712218233ae144d55f841818df9c63d2bd23d3.zip
Add compat-option `no-attach-infojson`
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r--yt_dlp/postprocessor/ffmpeg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index 0e160f5dc..78a80f3f8 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -605,7 +605,8 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
in_filenames.append(metadata_filename)
options.extend(['-map_metadata', '1'])
- if '__infojson_filename' in info and info['ext'] in ('mkv', 'mka'):
+ if ('no-attach-info-json' not in self.get_param('compat_opts', [])
+ and '__infojson_filename' in info and info['ext'] in ('mkv', 'mka')):
old_stream, new_stream = self.get_stream_number(
filename, ('tags', 'mimetype'), 'application/json')
if old_stream is not None: