Files
yt-dlp-webui/fetch-yt-dlp.sh
marcobaobao ab64a5370a Monthly update
Switch from debian to apline linux based container.
Cut down final image size by ~1GB
2022-03-03 20:22:49 +01:00

13 lines
311 B
Bash
Executable File

#!/bin/sh
echo "Downloading latest yt-dlp build..."
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!"