This commit is contained in:
2021-11-24 00:04:37 +01:00
parent 697138d3fa
commit 88cbba61ef
6 changed files with 42 additions and 18 deletions

15
lib/fetch-yt-dlp.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
echo "Downloading latest yt-dlp..."
rm -f yt-dlp
RELEASE=$(curl --silent "https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest" |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/'
)
wget "https://github.com/yt-dlp/yt-dlp/releases/download/$RELEASE/yt-dlp"
chmod +x yt-dlp
echo "Done!"