aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-13 16:31:08 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-13 16:32:23 +0530
commit3b603dbdf139efe187f961dbe8b1b24ba16ae194 (patch)
tree6378839c98d78b6dda8015a85e7034f9b8935668 /yt_dlp/options.py
parent5df1ac92bd85a02696f61a194d9a3a9e1ca34cfc (diff)
downloadhypervideo-pre-3b603dbdf139efe187f961dbe8b1b24ba16ae194.tar.lz
hypervideo-pre-3b603dbdf139efe187f961dbe8b1b24ba16ae194.tar.xz
hypervideo-pre-3b603dbdf139efe187f961dbe8b1b24ba16ae194.zip
Add option `--concat-playlist`
Closes #1855, related: #382
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index cc0a933be..cb6f01d4d 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1398,6 +1398,16 @@ def create_parser():
action='store_true', dest='xattrs', default=False,
help='Write metadata to the video file\'s xattrs (using dublin core and xdg standards)')
postproc.add_option(
+ '--concat-playlist',
+ metavar='POLICY', dest='concat_playlist', default='multi_video',
+ choices=('never', 'always', 'multi_video'),
+ help=(
+ 'Concatenate videos in a playlist. One of "never" (default), "always", or '
+ '"multi_video" (only when the videos form a single show). '
+ 'All the video files must have same codecs and number of streams to be concatable. '
+ 'The "pl_video:" prefix can be used with "--paths" and "--output" to '
+ 'set the output filename for the split files. See "OUTPUT TEMPLATE" for details'))
+ postproc.add_option(
'--fixup',
metavar='POLICY', dest='fixup', default=None,
choices=('never', 'ignore', 'warn', 'detect_or_warn', 'force'),