X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/d7f98714696a4c9691ed28fb9b63395b9227646a..8300774c4a32cc21b56088869a720fbbc0eb288a:/yt_dlp/options.py diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 5bbb292de..feb4b261d 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -516,6 +516,11 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs): action='store_const', const='::', dest='source_address', help='Make all connections via IPv6', ) + network.add_option( + '--enable-file-urls', action='store_true', + dest='enable_file_urls', default=False, + help='Enable file:// URLs. This is disabled by default for security reasons.' + ) geo = optparse.OptionGroup(parser, 'Geo-restriction') geo.add_option(