diff options
author | coletdev <coletdjnz@protonmail.com> | 2022-03-23 12:26:55 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 16:26:55 -0700 |
commit | d5820461e85a9d3d0b2a019f988d4469bfbcc3ee (patch) | |
tree | ac01dbd3fa5a9d577450bfc48b99e623fa7058f4 /yt_dlp/YoutubeDL.py | |
parent | 8a23db95197282159efe970ca0ac69c97def60d3 (diff) | |
download | hypervideo-pre-d5820461e85a9d3d0b2a019f988d4469bfbcc3ee.tar.lz hypervideo-pre-d5820461e85a9d3d0b2a019f988d4469bfbcc3ee.tar.xz hypervideo-pre-d5820461e85a9d3d0b2a019f988d4469bfbcc3ee.zip |
Use certificates from `certifi` if installed (#3115)
Fixes #3102 and most `CERTIFICATE_VERIFY_FAILED` issues
Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 33f33ddfe..d075a82bc 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -72,6 +72,7 @@ from .utils import ( formatSeconds, GeoRestrictedError, get_domain, + has_certifi, HEADRequest, InAdvancePagedList, int_or_none, @@ -3676,6 +3677,7 @@ class YoutubeDL(object): 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', |