1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 13:14:57 -04:00

Add option --concat-playlist

Closes #1855, related: #382
This commit is contained in:
pukkandan
2022-01-13 16:31:08 +05:30
parent 5df1ac92bd
commit 3b603dbdf1
7 changed files with 87 additions and 12 deletions

View File

@@ -591,6 +591,12 @@ def _real_main(argv=None):
# XAttrMetadataPP should be run after post-processors that may change file contents
if opts.xattrs:
postprocessors.append({'key': 'XAttrMetadata'})
if opts.concat_playlist != 'never':
postprocessors.append({
'key': 'FFmpegConcat',
'only_multi_video': opts.concat_playlist != 'always',
'when': 'playlist',
})
# Exec must be the last PP of each category
if opts.exec_before_dl_cmd:
opts.exec_cmd.setdefault('before_dl', opts.exec_before_dl_cmd)