mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 20:55:52 +01:00
[extractor/common] Extract format id from label attribute of source tag for HTML5 videos (#14034)
This commit is contained in:
parent
dd121cc1ca
commit
1ed4549942
@ -2186,7 +2186,10 @@ def _media_formats(src, cur_media_type, type_info={}):
|
|||||||
if is_plain_url:
|
if is_plain_url:
|
||||||
# res attribute is not standard but seen several times
|
# res attribute is not standard but seen several times
|
||||||
# in the wild
|
# in the wild
|
||||||
f['height'] = int_or_none(source_attributes.get('res'))
|
f.update({
|
||||||
|
'height': int_or_none(source_attributes.get('res')),
|
||||||
|
'format_id': source_attributes.get('label'),
|
||||||
|
})
|
||||||
f.update(formats[0])
|
f.update(formats[0])
|
||||||
media_info['formats'].append(f)
|
media_info['formats'].append(f)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user