10 lines
389 B
Bash
Executable file
10 lines
389 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
# yt-dlp breaks whenever YouTube changes; refresh to latest before the server
|
|
# imports it. A failed update (e.g. no network) must not stop the app from
|
|
# starting with the version baked into the image.
|
|
python -m pip install --user --upgrade --disable-pip-version-check yt-dlp \
|
|
|| echo "yt-dlp auto-update failed; starting with the installed version" >&2
|
|
|
|
exec "$@"
|