Skip to content

Commit 9f7f6ff

Browse files
committed
fix: fallback to best to avoid failure
close #9
1 parent 8dc57a1 commit 9f7f6ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

powershell/yt-download.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,10 @@ if ($url -and -not $install -and -not $uninstall) {
402402

403403
if ($QUALITY) {
404404
if ($QUALITY -ieq "best") {
405-
$videoQuality = "bestvideo+bestaudio"
405+
$videoQuality = "bestvideo+bestaudio/best"
406406
}
407407
else {
408-
$videoQuality = "bestvideo[vcodec^=avc1][height<=$QUALITY]+bestaudio[ext=m4a]/bestvideo[height<=$QUALITY]+bestaudio"
408+
$videoQuality = "bestvideo[vcodec^=avc1][height<=$QUALITY]+bestaudio[ext=m4a]/bestvideo[height<=$QUALITY]+bestaudio/best"
409409
}
410410
}
411411
$global:options = @(

0 commit comments

Comments
 (0)