spotifyd-docker/start.sh
2022-02-06 23:35:47 +01:00

26 lines
584 B
Bash
Executable File

#!/usr/bin/env sh
ARGS=""
if [ -n "$VOLUME_NORMALISATION" ]; then
ARGS="${ARGS} --volume-normalisation"
fi
if [ -n "$NORMALISATION_PREGAIN" ]; then
ARGS="${ARGS} --normalisation-pregain ${NORMALISATION_PREGAIN}"
fi
if [ -n "$BITRATE" ]; then
ARGS="${ARGS} --bitrate ${BITRATE}"
fi
if [ -n "$DEVICE_TYPE" ]; then
ARGS="${ARGS} --device-type ${DEVICE_TYPE}"
fi
if [ -n "$INITIAL_VOLUME" ]; then
ARGS="${ARGS} --initial-volume ${INITIAL_VOLUME}"
fi
./spotifyd --no-daemon --username "$USERNAME" --password "$PASSWORD" --device-name "${DEVICE:=Spotifyd}" $ARGS