1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-17 00:22:34 +01:00

[ie/vocaroo] Do not use deprecated getheader (#8606)

Authored by: qbnu
This commit is contained in:
qbnu 2023-11-18 21:49:23 +00:00 committed by GitHub
parent 6fe82491ed
commit f223b1b078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ def _real_extract(self, url):
'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,
}