aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-11-15 04:03:41 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-11-15 04:51:11 +0530
commitdac5df5a988a75ed12343e4ee8fcafbc76ae847d (patch)
treeb6c269aaacd76efaa57b12c4cb7dbaa863e00ab1 /yt_dlp/options.py
parentf279aaee8e246f510e56fe35b163520f35085338 (diff)
downloadhypervideo-pre-dac5df5a988a75ed12343e4ee8fcafbc76ae847d.tar.lz
hypervideo-pre-dac5df5a988a75ed12343e4ee8fcafbc76ae847d.tar.xz
hypervideo-pre-dac5df5a988a75ed12343e4ee8fcafbc76ae847d.zip
Add option `--embed-info-json` to embed info-json in mkv
Closes #1644
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 209f199bd..0843d5ff7 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1287,7 +1287,9 @@ def parseOpts(overrideArguments=None):
postproc.add_option(
'--embed-metadata', '--add-metadata',
action='store_true', dest='addmetadata', default=False,
- help='Embed metadata to the video file. Also adds chapters to file unless --no-add-chapters is used (Alias: --add-metadata)')
+ help=(
+ 'Embed metadata to the video file. Also embeds chapters/infojson if present '
+ 'unless --no-embed-chapters/--no-embed-info-json are used (Alias: --add-metadata)'))
postproc.add_option(
'--no-embed-metadata', '--no-add-metadata',
action='store_false', dest='addmetadata',
@@ -1301,6 +1303,14 @@ def parseOpts(overrideArguments=None):
action='store_false', dest='addchapters',
help='Do not add chapter markers (default) (Alias: --no-add-chapters)')
postproc.add_option(
+ '--embed-info-json',
+ action='store_true', dest='embed_infojson', default=None,
+ help='Embed the infojson as an attachment to mkv/mka video files')
+ postproc.add_option(
+ '--no-embed-info-json',
+ action='store_false', dest='embed_infojson',
+ help='Do not embed the infojson as an attachment to the video file')
+ postproc.add_option(
'--metadata-from-title',
metavar='FORMAT', dest='metafromtitle',
help=optparse.SUPPRESS_HELP)