diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2023-09-02 15:18:04 +0200 |
---|---|---|
committer | Simon Sawicki <contact@grub4k.xyz> | 2023-09-02 15:18:04 +0200 |
commit | 77bff23ee97565bab2e0d75b893a21bf7983219a (patch) | |
tree | fff65d2350595dda63be9e8e0f1db886671868e5 /yt_dlp/networking/_urllib.py | |
parent | 7237c8dca0590aa7438ade93f927df88c9381ec7 (diff) | |
download | hypervideo-pre-77bff23ee97565bab2e0d75b893a21bf7983219a.tar.lz hypervideo-pre-77bff23ee97565bab2e0d75b893a21bf7983219a.tar.xz hypervideo-pre-77bff23ee97565bab2e0d75b893a21bf7983219a.zip |
Bugfix for 59e92b1f1833440bb2190f847eb735cf0f90bc85
Closes #8012
Authored by: Grub4K
Diffstat (limited to 'yt_dlp/networking/_urllib.py')
-rw-r--r-- | yt_dlp/networking/_urllib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/networking/_urllib.py b/yt_dlp/networking/_urllib.py index 5a804d99b..b3e705b84 100644 --- a/yt_dlp/networking/_urllib.py +++ b/yt_dlp/networking/_urllib.py @@ -156,6 +156,8 @@ class HTTPHandler(urllib.request.AbstractHTTPHandler): 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): |