Add compat-option embed-metadata
This commit is contained in:
parent
d0e6121adf
commit
f279aaee8e
3 changed files with 5 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ def parseOpts(overrideArguments=None):
|
|||
'allowed_values': {
|
||||
'filename', 'format-sort', 'abort-on-error', 'format-spec', 'no-playlist-metafiles',
|
||||
'multistreams', 'no-live-chat', 'playlist-index', 'list-formats', 'no-direct-merge',
|
||||
'no-youtube-channel-redirect', 'no-youtube-unavailable-videos', 'no-attach-info-json',
|
||||
'no-youtube-channel-redirect', 'no-youtube-unavailable-videos', 'no-attach-info-json', 'embed-metadata',
|
||||
'embed-thumbnail-atomicparsley', 'seperate-video-versions', 'no-clean-infojson', 'no-keep-subs',
|
||||
}, 'aliases': {
|
||||
'youtube-dl': ['-multistreams', 'all'],
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue