op-packages/spotifyd/files/spotifyd.uci
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

21 lines
388 B
Bash

#!/bin/sh
audio_format="$(uci -q get "spotifyd.config.audio_format")"
[ -n "$audio_format" ] || exit 0
case "$audio_format" in
"F32"|"S16"|"S24"|"S32")
audio_format="$(echo "$audio_format" | tr "[A-Z]" "[a-z]")"
;;
"S24_3")
audio_format="s24-3"
;;
esac
if [ -n "$audio_format" ]; then
uci -q set "spotifyd.config.audio_format"="$audio_format"
uci -q commit "spotifyd"
fi
exit 0