1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-14 08:28:29 +00:00
This commit is contained in:
qbnu 2025-08-12 20:25:36 -03:00 committed by GitHub
commit 2f20375c2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,9 +276,10 @@ def _extract_info_dict(self, info, full_title=None, secret_token=None, extract_f
if urlh: if urlh:
format_url = urlh.url format_url = urlh.url
format_urls.add(format_url) format_urls.add(format_url)
ext = urlh.headers.get('x-amz-meta-file-type') or urlhandle_detect_ext(urlh)
formats.append({ formats.append({
'format_id': 'download', 'format_id': 'download',
'ext': urlhandle_detect_ext(urlh), 'ext': ext,
'filesize': int_or_none(urlh.headers.get('Content-Length')), 'filesize': int_or_none(urlh.headers.get('Content-Length')),
'url': format_url, 'url': format_url,
'quality': 10, 'quality': 10,