Fix bug in default format selection

This commit is contained in:
pukkandan 2021-01-07 17:11:39 +05:30
parent b5611f728f
commit 19807826f7
1 changed files with 2 additions and 2 deletions

View File

@ -1194,14 +1194,14 @@ class YoutubeDL(object):
and download
and (
not can_merge()
or info_dict.get('is_live')
or info_dict.get('is_live', False)
or self.params.get('outtmpl', DEFAULT_OUTTMPL) == '-'))
return (
'best/bestvideo+bestaudio'
if prefer_best
else 'bestvideo*+bestaudio/best'
if self.params.get('allow_multiple_audio_streams', False)
if not self.params.get('allow_multiple_audio_streams', False)
else 'bestvideo+bestaudio/best')
def build_format_selector(self, format_spec):