aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/__init__.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-22 13:30:44 -0500
committerJesús <heckyel@hyperbola.info>2021-12-22 13:30:44 -0500
commit4f0875462ee497cc13c02d0b852f52f4887b5cea (patch)
tree38df3d0c84047aa52ba9e712c4417f69cf767310 /yt_dlp/__init__.py
parent65ee789d3062a5321faf0092fc2cf8ec498fc4a1 (diff)
parent4273cc776d339478262e0b37cb1ffee3bc67b04a (diff)
downloadhypervideo-pre-4f0875462ee497cc13c02d0b852f52f4887b5cea.tar.lz
hypervideo-pre-4f0875462ee497cc13c02d0b852f52f4887b5cea.tar.xz
hypervideo-pre-4f0875462ee497cc13c02d0b852f52f4887b5cea.zip
updated from upstream | 22/12/2021 at 13:30
Diffstat (limited to 'yt_dlp/__init__.py')
-rw-r--r--yt_dlp/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py
index 2a13f61c5..198962aa5 100644
--- a/yt_dlp/__init__.py
+++ b/yt_dlp/__init__.py
@@ -133,6 +133,11 @@ def _real_main(argv=None):
sys.exit(0)
# Conflicting, missing and erroneous options
+ if opts.format == 'best':
+ warnings.append('.\n '.join(
+ '"-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',
+ '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):
parser.error('using .netrc conflicts with giving username/password')
if opts.password is not None and opts.username is None: