Files
youdis/update-ytdlp.sh
eulaly 33d5de6a77
Some checks failed
push new builds to gitea, dockerhub / build (push) Failing after 38s
update ytdlp on container start; cleanup gitea workflow
2025-08-29 15:22:10 -04:00

13 lines
327 B
Bash

#!/bin/sh
set -e
echo "updating yt-dlp"
echo "killing youdis"
pkill -f youdis.py || true
python3 -m pip install --no-cache-dir --upgrade --pre "yt-dlp[default]"
VERSION=$(python3 -m pip show yt-dlp 2>/dev/null | awk '/Version:/ {print $2}')
echo "updated yt-dlp to $VERSION"
echo "restarting youdis"
python3 /app/youdis.py &