Fix missing audio stream in downloaded YouTube vids
This commit is contained in:
parent
fc8f515059
commit
209d540b7b
9
aliases
9
aliases
|
@ -126,8 +126,7 @@ dl_youtube_vid() {
|
||||||
filename="${filename:0:4}-${filename:4:2}-${filename:6}"
|
filename="${filename:0:4}-${filename:4:2}-${filename:6}"
|
||||||
|
|
||||||
if [[ $format == "" ]]; then
|
if [[ $format == "" ]]; then
|
||||||
printf "${BOLD}Getting best non-webm format${NORMAL}\n"
|
youtube-dl.exe -o "$filename" $opts $url
|
||||||
youtube-dl.exe -f "bestvideo[ext!=webm]" -o "$filename" $opts $url
|
|
||||||
else
|
else
|
||||||
youtube-dl.exe -f $format -o "$filename" $opts $url
|
youtube-dl.exe -f $format -o "$filename" $opts $url
|
||||||
fi
|
fi
|
||||||
|
@ -158,8 +157,7 @@ dl_youtube_vid_and_hflip() {
|
||||||
filename="${filename:0:4}-${filename:4:2}-${filename:6}"
|
filename="${filename:0:4}-${filename:4:2}-${filename:6}"
|
||||||
|
|
||||||
if [[ $format == "" ]]; then
|
if [[ $format == "" ]]; then
|
||||||
printf "${BOLD}Getting best non-webm format${NORMAL}\n"
|
youtube-dl.exe -o "$filename" $opts $url
|
||||||
youtube-dl.exe -f "bestvideo[ext!=webm]" -o "$filename" $opts $url
|
|
||||||
else
|
else
|
||||||
youtube-dl.exe -f $format -o "$filename" $opts $url
|
youtube-dl.exe -f $format -o "$filename" $opts $url
|
||||||
fi
|
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"
|
local name_format="v%(playlist_index)s--%(upload_date)s-%(title)s-youtube-%(id)s.%(ext)s"
|
||||||
|
|
||||||
if [[ $format == "" ]]; then
|
if [[ $format == "" ]]; then
|
||||||
printf "${BOLD}Getting best non-webm format${NORMAL}\n"
|
youtube-dl.exe -o "$name_format" $opts $url
|
||||||
youtube-dl.exe -f "bestvideo[ext!=webm]" -o "$name_format" $opts $url
|
|
||||||
else
|
else
|
||||||
youtube-dl.exe -f $format -o "$name_format" $opts $url
|
youtube-dl.exe -f $format -o "$name_format" $opts $url
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user