Skip to content

A feature-rich command-line audio/video downloader

Fix `--no-prefer-free-formats` (#787)

CeruleanSky1c36c1f3205e
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 86aad33939..c26d498a57 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -548,7 +548,7 @@ def parseOpts(overrideArguments=None):
'Use with "-S ext" to strictly prefer free containers irrespective of quality'))
video_format.add_option(
'--no-prefer-free-formats',
- action='store_true', dest='prefer_free_formats', default=False,
+ action='store_false', dest='prefer_free_formats', default=False,
help="Don't give any special preference to free containers (default)")
video_format.add_option(
'--check-formats',