aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-07 17:11:39 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-07 17:22:46 +0530
commit19807826f7c79dae319f56680c971dbc2cc1fcaa (patch)
treea47e8f7f2e8b9afbf986bb777ef9ba9a1ee9f79b
parentb5611f728f5c9eb6fe7e1e1aa80641e86fcb58f8 (diff)
downloadhypervideo-pre-19807826f7c79dae319f56680c971dbc2cc1fcaa.tar.lz
hypervideo-pre-19807826f7c79dae319f56680c971dbc2cc1fcaa.tar.xz
hypervideo-pre-19807826f7c79dae319f56680c971dbc2cc1fcaa.zip
Fix bug in default format selection
-rw-r--r--youtube_dlc/YoutubeDL.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py
index 19666d0ad..01d26cff2 100644
--- a/youtube_dlc/YoutubeDL.py
+++ b/youtube_dlc/YoutubeDL.py
@@ -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):