commit cae1df6
hovercats
·
2024-09-04 19:50:23 +0000 UTC
parent 729148d
ytdl: improve the test for available quality
1 files changed,
+1,
-1
M
rc/ytdl
M
rc/ytdl
+1,
-1
1@@ -14,5 +14,5 @@ if (~ $#* 0){
2 }
3
4 val=`{yt-dlp -F $1 | grep '1080p' | tail -n 1 | awk '{print $1}'}
5-test -z $val && val=bestvideo
6+if (~ $#val 0) val=bestvideo
7 exec yt-dlp -P $DLDIR -f $val+bestaudio $1$proxy