jukebox fix

This commit is contained in:
_Bastler 2022-01-21 15:20:51 +01:00
parent 1f208ec7e5
commit f3a309c597

View File

@ -222,6 +222,10 @@ public class JukeboxManager implements SmartInitializingSingleton {
request.retrieve().bodyToMono(String.class).block();
return getStatus();
}
if (!statusObject.get("is_playing").getAsBoolean()) {
logger.debug("no playing, try to start playback!");
tryStartPlayback();
}
}
}
if (disable) {
@ -230,9 +234,6 @@ public class JukeboxManager implements SmartInitializingSingleton {
}
}
return status;
} else {
logger.debug("no device, try to start playback!");
tryStartPlayback(config.getFallbackContextId());
}
return JsonNull.INSTANCE;