mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
(alternative behavior): don't add default metadata when --custom-metadata is used without --add-metadata
This commit is contained in:
parent
489e08cdf4
commit
699a91a8f2
@ -367,6 +367,7 @@ def _real_main(argv=None):
|
||||
'hls_prefer_native': opts.hls_prefer_native,
|
||||
'external_downloader_args': external_downloader_args,
|
||||
'cn_verification_proxy': opts.cn_verification_proxy,
|
||||
'addmetadata': opts.addmetadata,
|
||||
'custommeta': opts.custommeta,
|
||||
}
|
||||
|
||||
|
@ -349,6 +349,7 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
|
||||
class FFmpegMetadataPP(FFmpegPostProcessor):
|
||||
def run(self, info):
|
||||
metadata = {}
|
||||
if self._downloader.params.get('addmetadata'):
|
||||
if info.get('title') is not None:
|
||||
metadata['title'] = info['title']
|
||||
if info.get('upload_date') is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user