commit 727016e

hovercats  ·  2023-10-18 07:41:40 +0000 UTC
parent 480402a
ytdl: test if $val is empty, and choose w/e is best if 1080p isnt available
1 files changed,  +1, -0
+1, -0
1@@ -12,4 +12,5 @@ if (test -z $1){
2 }
3 
4 val=`{yt-dlp -F $1 | grep '1080p' | tail -n 1 | awk '{print $1}'}
5+test -z $val && val=bestvideo
6 yt-dlp -P $DLDIR -f $val+bestaudio $1$proxy