From 317e85e3267a148b57e9ac02a0d79dcf6c56505b Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:14:04 +0200 Subject: [PATCH] fix: update on Startup for mopidy --- scripts/startup-scripts.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/startup-scripts.sh b/scripts/startup-scripts.sh index 94b1c6a66..d1042b7b3 100755 --- a/scripts/startup-scripts.sh +++ b/scripts/startup-scripts.sh @@ -54,7 +54,12 @@ echo "${mpgvolume} is the mpg123 startup volume" ####################### # re-scan music library -mpc rescan +# if spotify edition is installed, update via mopidy as mpc update doesnt work +if [ "$EDITION" == "plusSpotify" ]; then + sudo mopidyctl local scan > /dev/null 2>&1 +else + mpc rescan +fi ####################### # read out wifi config?