Skip to content

Commit

Permalink
Ensure mergeall selects best format when multistreams are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Apr 13, 2021
1 parent a31953b commit 921b76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 921b76c

Please sign in to comment.