add yt-dlp update

This commit is contained in:
Tobias
2025-03-21 17:04:59 +01:00
committed by GitHub
parent da18109a2e
commit 9bcc053b04

View File

@@ -28,6 +28,7 @@ function update_script() {
exit
fi
$STD yt-dlp -U
RELEASE=$(curl -s https://api.github.com/repos/marcopiovanello/yt-dlp-web-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ "${RELEASE}" != "$(cat /opt/yt-dlp-webui_version.txt)" ]] || [[ ! -f /opt/yt-dlp-webui_version.txt ]]; then