1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-02-09 14:48:40 +01:00

Fix bug in 1cefca9e440f343281779e47720128e9614cf147

Fixes https://github.com/ytdl-patched/ytdl-patched/issues/11
This commit is contained in:
pukkandan 2021-12-23 09:14:21 +05:30
parent 37893bb0c9
commit b28bac93ab
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -139,10 +139,10 @@ def _real_main(argv=None):
# Conflicting, missing and erroneous options # Conflicting, missing and erroneous options
if opts.format == 'best': if opts.format == 'best':
warnings.append('.\n '.join( warnings.append('.\n '.join((
'"-f best" selects the best pre-merged format which is often not the best option', '"-f best" selects the best pre-merged format which is often not the best option',
'To let yt-dlp download and merge the best available formats, simply do not pass any format selection', 'To let yt-dlp download and merge the best available formats, simply do not pass any format selection',
'If you know what you are doing and want only the best pre-merged format, use "-f b" instead to suppress this warning')) 'If you know what you are doing and want only the best pre-merged format, use "-f b" instead to suppress this warning')))
if opts.usenetrc and (opts.username is not None or opts.password is not None): if opts.usenetrc and (opts.username is not None or opts.password is not None):
parser.error('using .netrc conflicts with giving username/password') parser.error('using .netrc conflicts with giving username/password')
if opts.password is not None and opts.username is None: if opts.password is not None and opts.username is None: