aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2025-03-02 13:36:05 +0000
committerdirkf <fieldhouse@gmx.net>2025-03-11 02:00:24 +0000
commit8738407d77f6da843f8f5ded1ccad73172b4abac (patch)
tree6eae43509abfbdcddfd17e066d168c63d4932316
parentcecaa18b80e33323193915ef9fbd2f68d94d7bce (diff)
[compat] Support zstd Content-Encoding
* see RFC 8878 7.2
-rw-r--r--youtube_dl/compat.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index e617dd511..6cd7abd24 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -3561,6 +3561,13 @@ try:
except ImportError:
compat_ncompress = None
+# compat_zstandard
+# PyPi zstandard package implements 'zstd' Content-Encoding (RFC 8878 7.2)
+try:
+ import zstandard as compat_zstandard
+except ImportError:
+ compat_zstandard = None
+
legacy = [
'compat_HTMLParseError',
@@ -3658,4 +3665,5 @@ __all__ = [
'compat_xml_etree_register_namespace',
'compat_xpath',
'compat_zip',
+ 'compat_zstandard',
]