1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-16 17:38:29 +00:00
This commit is contained in:
qbnu 2025-08-14 09:49:37 +09:00 committed by GitHub
commit 698c0ac06b
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:
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,