[soundcloud] prefer 'x-amz-meta-file-type' to detect 'download' format extension

pull/13974/head
qbnu 2 weeks ago
parent 38c2bf4026
commit 1d4115d0dc

@ -276,9 +276,10 @@ class SoundcloudBaseIE(InfoExtractor):
if urlh:
format_url = urlh.url
format_urls.add(format_url)
ext = urlh.headers.get('x-amz-meta-file-type') or urlhandle_detect_ext(urlh)
formats.append({
'format_id': 'download',
'ext': urlhandle_detect_ext(urlh),
'ext': ext,
'filesize': int_or_none(urlh.headers.get('Content-Length')),
'url': format_url,
'quality': 10,

Loading…
Cancel
Save