mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 15:22:35 +00:00
Ensure mergeall
selects best format when multistreams are disabled
This commit is contained in:
parent
a31953b0e6
commit
921b76cab8
1 changed files with 2 additions and 2 deletions
|
@ -1650,8 +1650,8 @@ class YoutubeDL(object):
|
||||||
formats = list(ctx['formats'])
|
formats = list(ctx['formats'])
|
||||||
if not formats:
|
if not formats:
|
||||||
return
|
return
|
||||||
merged_format = formats[0]
|
merged_format = formats[-1]
|
||||||
for f in formats[1:]:
|
for f in formats[-2::-1]:
|
||||||
merged_format = _merge((merged_format, f))
|
merged_format = _merge((merged_format, f))
|
||||||
yield merged_format
|
yield merged_format
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue