commit e8a7970
hovercats
·
2023-06-05 16:48:05 +0000 UTC
parent fddf2d0
rc/ytdl: force proxy. will probably break youtube links, but invidious links should still work
1 files changed,
+2,
-1
M
rc/ytdl
M
rc/ytdl
+2,
-1
1@@ -4,6 +4,7 @@
2 # Requires yt-dlp
3
4 DLDIR=$HOME/usr/vid
5+proxy='&local=true'
6
7 if (test -z $1){
8 printf 'No url found\n'
9@@ -11,4 +12,4 @@ if (test -z $1){
10 }
11
12 val=`{yt-dlp -F $1 | grep '1080p' | tail -n 1 | awk '{print $1}'}
13-yt-dlp -P $DLDIR -f $val+bestaudio $1
14+yt-dlp -P $DLDIR -f $val+bestaudio $1$proxy