Ensure `mergeall` selects best format when multistreams are disabled

pull/310/head
pukkandan 4 years ago
parent a31953b0e6
commit 921b76cab8
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -1650,8 +1650,8 @@ class YoutubeDL(object):
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

Loading…
Cancel
Save