1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-24 19:22:06 +00:00

[extractor/common] Extract format id from label attribute of source tag for HTML5 videos (#14034)

This commit is contained in:
Sergey M․ 2017-08-27 03:27:05 +07:00
parent dd121cc1ca
commit 1ed4549942
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -2186,7 +2186,10 @@ class InfoExtractor(object):
if is_plain_url:
# res attribute is not standard but seen several times
# 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])
media_info['formats'].append(f)
else: