mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-14 08:28:29 +00:00
Merge 1d4115d0dc
into f2919bd28e
This commit is contained in:
commit
2f20375c2c
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user