From 209d540b7b846e22d3acd66c0c7d48acdde53f7f Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 5 Aug 2020 12:09:21 -0400 Subject: [PATCH] Fix missing audio stream in downloaded YouTube vids --- aliases | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/aliases b/aliases index 60b08c8..b4a13e8 100644 --- a/aliases +++ b/aliases @@ -126,8 +126,7 @@ dl_youtube_vid() { filename="${filename:0:4}-${filename:4:2}-${filename:6}" if [[ $format == "" ]]; then - printf "${BOLD}Getting best non-webm format${NORMAL}\n" - youtube-dl.exe -f "bestvideo[ext!=webm]" -o "$filename" $opts $url + youtube-dl.exe -o "$filename" $opts $url else youtube-dl.exe -f $format -o "$filename" $opts $url fi @@ -158,8 +157,7 @@ dl_youtube_vid_and_hflip() { filename="${filename:0:4}-${filename:4:2}-${filename:6}" if [[ $format == "" ]]; then - printf "${BOLD}Getting best non-webm format${NORMAL}\n" - youtube-dl.exe -f "bestvideo[ext!=webm]" -o "$filename" $opts $url + youtube-dl.exe -o "$filename" $opts $url else youtube-dl.exe -f $format -o "$filename" $opts $url fi @@ -194,8 +192,7 @@ dl_youtube_playlist() { local name_format="v%(playlist_index)s--%(upload_date)s-%(title)s-youtube-%(id)s.%(ext)s" if [[ $format == "" ]]; then - printf "${BOLD}Getting best non-webm format${NORMAL}\n" - youtube-dl.exe -f "bestvideo[ext!=webm]" -o "$name_format" $opts $url + youtube-dl.exe -o "$name_format" $opts $url else youtube-dl.exe -f $format -o "$name_format" $opts $url fi