From 0432ebbdc9bf27a4ccc5b4c85a1ff9e0eb90284f Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Sat, 19 Aug 2017 10:25:57 -0700 Subject: [PATCH] Fix problem with videos with no sound --- ytdl/ytdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytdl/ytdl.py b/ytdl/ytdl.py index bbefe39..e99bfc7 100644 --- a/ytdl/ytdl.py +++ b/ytdl/ytdl.py @@ -88,7 +88,7 @@ def _choose_url(info, quality): # Filter formats by file extension ext = 'mp4' if is_video else 'm4a' - fmt_list = [x for x in info['formats'] if x['ext'] == ext] + fmt_list = [x for x in info['formats'] if x['ext'] == ext and x['format_note'] != 'DASH video'] if not len(fmt_list): return info['url']