]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/YoutubeDL.py
Use certificates from `certifi` if installed (#3115)
[yt-dlp.git] / yt_dlp / YoutubeDL.py
index 33f33ddfe09555d4bf84cbbe18b742c2ec2c991a..d075a82bc758dcbce9b46daba84796806f5e8513 100644 (file)
@@ -72,6 +72,7 @@
     formatSeconds,
     GeoRestrictedError,
     get_domain,
+    has_certifi,
     HEADRequest,
     InAdvancePagedList,
     int_or_none,
@@ -3676,6 +3677,7 @@ def python_implementation():
 
         lib_str = join_nonempty(
             compat_brotli and compat_brotli.__name__,
+            has_certifi and 'certifi',
             compat_pycrypto_AES and compat_pycrypto_AES.__name__.split('.')[0],
             SECRETSTORAGE_AVAILABLE and 'secretstorage',
             has_mutagen and 'mutagen',