logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 8738407d77f6da843f8f5ded1ccad73172b4abac
parent cecaa18b80e33323193915ef9fbd2f68d94d7bce
Author: dirkf <fieldhouse@gmx.net>
Date:   Sun,  2 Mar 2025 13:36:05 +0000

[compat] Support zstd Content-Encoding
* see RFC 8878 7.2

Diffstat:

Myoutube_dl/compat.py8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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', ]