mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
parent
7237c8dca0
commit
77bff23ee9
@ -156,6 +156,8 @@ def brotli(data):
|
||||
def gz(data):
|
||||
# There may be junk added the end of the file
|
||||
# We ignore it by only ever decoding a single gzip payload
|
||||
if not data:
|
||||
return data
|
||||
return zlib.decompress(data, wbits=zlib.MAX_WBITS | 16)
|
||||
|
||||
def http_request(self, req):
|
||||
|
Loading…
Reference in New Issue
Block a user