1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-09 23:07:16 +08:00

Fixed InfoExtractor to sort formats

This commit is contained in:
JChris246 2019-02-22 16:16:37 -04:00
parent 2f86a2a202
commit cc9da14d68

View File

@ -2465,7 +2465,7 @@ class InfoExtractor(object):
# in the wild
f.update({
'height': int_or_none(source_attributes.get('res')),
'format_id': source_attributes.get('label'),
'format_id': source_attributes.get('label') or source_attributes.get('title'),
})
f.update(formats[0])
media_info['formats'].append(f)