From f223b1b0789f65e06619dcc9fc9e74f50d259379 Mon Sep 17 00:00:00 2001 From: qbnu <93988953+qbnu@users.noreply.github.com> Date: Sat, 18 Nov 2023 21:49:23 +0000 Subject: [PATCH] [ie/vocaroo] Do not use deprecated `getheader` (#8606) Authored by: qbnu --- yt_dlp/extractor/vocaroo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/vocaroo.py b/yt_dlp/extractor/vocaroo.py index d98fbfd2d..e30c9597f 100644 --- a/yt_dlp/extractor/vocaroo.py +++ b/yt_dlp/extractor/vocaroo.py @@ -57,7 +57,7 @@ class VocarooIE(InfoExtractor): 'title': '', 'url': url, 'ext': 'mp3', - 'timestamp': float_or_none(resp.getheader('x-bz-upload-timestamp'), scale=1000), + 'timestamp': float_or_none(resp.headers.get('x-bz-upload-timestamp'), scale=1000), 'vcodec': 'none', 'http_headers': http_headers, }