A feature-rich command-line audio/video downloader
Automatically load SSL certs on Windows
Philipp Hagemeister303b479e0a4b
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex 7b58788309..a84aa59c22 100644--- a/youtube_dl/utils.py+++ b/youtube_dl/utils.py@@ -561,11 +561,14 @@ def make_HTTPS_handler(opts_no_check_certificate):return HTTPSHandlerV3()else:context = ssl.SSLContext(ssl.PROTOCOL_SSLv3)- context.set_default_verify_paths()-context.verify_mode = (ssl.CERT_NONEif opts_no_check_certificateelse ssl.CERT_REQUIRED)+ context.set_default_verify_paths()+ try:+ context.load_default_certs()+ except AttributeError:+ pass # Python < 3.4return compat_urllib_request.HTTPSHandler(context=context)class ExtractorError(Exception):