#!/bin/bash # Weekly yt-dlp update, run under runitor from susan's crontab. # # specs.md ยง12 calls a stale yt-dlp the single most likely cause of "everything # broke", so this is monitored with its own Healthchecks UUID. It deliberately # does NOT touch the bgutil plugin: that is pinned to match the container tag, # and upgrading one half alone is how you get silent version skew. # # doctor runs afterwards so a successful install that nonetheless leaves the # stack broken still fails the check. set -euo pipefail VENV=/var/lib/youtube-automate/venv UV=/home/susan/.local/bin/uv "$UV" pip install --python "$VENV" --quiet --upgrade 'yt-dlp[default]' echo "yt-dlp now: $("$VENV/bin/yt-dlp" --version)" exec "$VENV/bin/youtube-automate" doctor