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

Authored by: qbnu
pull/8501/merge
qbnu 2023-11-18 21:49:23 +00:00 zatwierdzone przez GitHub
rodzic 6fe82491ed
commit f223b1b078
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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,
}