]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in default format selection
authorpukkandan <redacted>
Thu, 7 Jan 2021 11:41:39 +0000 (17:11 +0530)
committerpukkandan <redacted>
Thu, 7 Jan 2021 11:52:46 +0000 (17:22 +0530)
youtube_dlc/YoutubeDL.py

index 19666d0ad1f2247af1a73072d75d528ed181ce67..01d26cff2c4c7a9ed2c3b9828d9113f9e2ede463 100644 (file)
@@ -1194,14 +1194,14 @@ def can_merge():
             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):