diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2023-11-25 20:40:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-26 02:40:09 +0000 |
commit | deeb13eae82e60f82a2c0c5861f460399a997528 (patch) | |
tree | 4e8c24f9712bb488ce46f8fa82f925fc2a65e4b1 /yt_dlp/postprocessor/ffmpeg.py | |
parent | bb5a54e6db2422bbd155d93a0e105b6616c09467 (diff) |
[pp/FFmpegMetadata] Embed stream metadata in single format downloads (#8647)
Closes #8568
Authored by: bashonly
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r-- | yt_dlp/postprocessor/ffmpeg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 323f4303c..7c904417b 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -780,7 +780,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor): yield ('-metadata', f'{name}={value}') stream_idx = 0 - for fmt in info.get('requested_formats') or []: + for fmt in info.get('requested_formats') or [info]: stream_count = 2 if 'none' not in (fmt.get('vcodec'), fmt.get('acodec')) else 1 lang = ISO639Utils.short2long(fmt.get('language') or '') or fmt.get('language') for i in range(stream_idx, stream_idx + stream_count): |