1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-05 17:15:13 +00:00

Add brotli content-encoding support (#2433)

Authored by: coletdjnz
This commit is contained in:
coletdev
2022-03-09 05:44:05 +13:00
committed by GitHub
parent 9e0e6adb2d
commit 4390d5ec12
7 changed files with 36 additions and 4 deletions

View File

@@ -170,6 +170,13 @@ except ImportError:
except ImportError:
compat_pycrypto_AES = None
try:
import brotlicffi as compat_brotli
except ImportError:
try:
import brotli as compat_brotli
except ImportError:
compat_brotli = None
WINDOWS_VT_MODE = False if compat_os_name == 'nt' else None
@@ -258,6 +265,7 @@ __all__ = [
'compat_asyncio_run',
'compat_b64decode',
'compat_basestring',
'compat_brotli',
'compat_chr',
'compat_collections_abc',
'compat_cookiejar',