mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 01:02:48 +01:00
Fix bug in default format selection
This commit is contained in:
parent
b5611f728f
commit
19807826f7
@ -1194,14 +1194,14 @@ def can_merge():
|
|||||||
and download
|
and download
|
||||||
and (
|
and (
|
||||||
not can_merge()
|
not can_merge()
|
||||||
or info_dict.get('is_live')
|
or info_dict.get('is_live', False)
|
||||||
or self.params.get('outtmpl', DEFAULT_OUTTMPL) == '-'))
|
or self.params.get('outtmpl', DEFAULT_OUTTMPL) == '-'))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
'best/bestvideo+bestaudio'
|
'best/bestvideo+bestaudio'
|
||||||
if prefer_best
|
if prefer_best
|
||||||
else 'bestvideo*+bestaudio/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')
|
else 'bestvideo+bestaudio/best')
|
||||||
|
|
||||||
def build_format_selector(self, format_spec):
|
def build_format_selector(self, format_spec):
|
||||||
|
Loading…
Reference in New Issue
Block a user