mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[youtube] Minor improvement to format sorting
This commit is contained in:
parent
39c04074e7
commit
e339d25a0d
1 changed files with 1 additions and 1 deletions
|
@ -2563,7 +2563,7 @@ def process_manifest_format(f, proto, itag):
|
||||||
|
|
||||||
f['quality'] = next((
|
f['quality'] = next((
|
||||||
q(qdict[val])
|
q(qdict[val])
|
||||||
for val, qdict in ((f.get('format_id'), itag_qualities), (f.get('height'), res_qualities))
|
for val, qdict in ((f.get('format_id', '').split('-')[0], itag_qualities), (f.get('height'), res_qualities))
|
||||||
if val in qdict), -1)
|
if val in qdict), -1)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue