1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

Add compat-option embed-metadata

This commit is contained in:
pukkandan
2021-11-15 01:25:47 +05:30
parent d0e6121adf
commit f279aaee8e
3 changed files with 5 additions and 1 deletions

View File

@ -721,6 +721,9 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
add('season_number')
add('episode_id', ('episode', 'episode_id'))
add('episode_sort', 'episode_number')
if 'embed-metadata' in self.get_param('compat_opts', []):
add('comment', 'description')
metadata.pop('synopsis', None)
for key, value in info.items():
if value is not None and key != meta_prefix and key.startswith(meta_prefix):