1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-13 16:08:29 +00:00

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

This commit is contained in:
qbnu 2025-08-04 02:03:28 -04:00
parent 38c2bf4026
commit 1d4115d0dc

View File

@ -276,9 +276,10 @@ def _extract_info_dict(self, info, full_title=None, secret_token=None, extract_f
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,