mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 17:47:17 +08:00
Fixed InfoExtractor to sort formats
This commit is contained in:
parent
2f86a2a202
commit
cc9da14d68
@ -2465,7 +2465,7 @@ class InfoExtractor(object):
|
|||||||
# in the wild
|
# in the wild
|
||||||
f.update({
|
f.update({
|
||||||
'height': int_or_none(source_attributes.get('res')),
|
'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])
|
f.update(formats[0])
|
||||||
media_info['formats'].append(f)
|
media_info['formats'].append(f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user