]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in 1cefca9e440f343281779e47720128e9614cf147
authorpukkandan <redacted>
Thu, 23 Dec 2021 03:44:21 +0000 (09:14 +0530)
committerpukkandan <redacted>
Thu, 23 Dec 2021 03:45:05 +0000 (09:15 +0530)
Fixes https://github.com/ytdl-patched/ytdl-patched/issues/11

yt_dlp/__init__.py

index da7283300e3bfca297d9852b15146d261e23ef46..d0d765331876a477edd56725af6b84c0eea5431b 100644 (file)
@@ -139,10 +139,10 @@ def _real_main(argv=None):
 
     # Conflicting, missing and erroneous options
     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',
             '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):
         parser.error('using .netrc conflicts with giving username/password')
     if opts.password is not None and opts.username is None: