0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-22 06:00:00 +00:00

Ensure mergeall selects best format when multistreams are disabled

This commit is contained in:
pukkandan 2021-04-13 10:53:25 +05:30
parent a31953b0e6
commit 921b76cab8
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -1650,8 +1650,8 @@ def selector_function(ctx):
formats = list(ctx['formats'])
if not formats:
return
merged_format = formats[0]
for f in formats[1:]:
merged_format = formats[-1]
for f in formats[-2::-1]:
merged_format = _merge((merged_format, f))
yield merged_format