jukebox fix
This commit is contained in:
parent
1f208ec7e5
commit
f3a309c597
@ -222,6 +222,10 @@ public class JukeboxManager implements SmartInitializingSingleton {
|
|||||||
request.retrieve().bodyToMono(String.class).block();
|
request.retrieve().bodyToMono(String.class).block();
|
||||||
return getStatus();
|
return getStatus();
|
||||||
}
|
}
|
||||||
|
if (!statusObject.get("is_playing").getAsBoolean()) {
|
||||||
|
logger.debug("no playing, try to start playback!");
|
||||||
|
tryStartPlayback();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (disable) {
|
if (disable) {
|
||||||
@ -230,9 +234,6 @@ public class JukeboxManager implements SmartInitializingSingleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
} else {
|
|
||||||
logger.debug("no device, try to start playback!");
|
|
||||||
tryStartPlayback(config.getFallbackContextId());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return JsonNull.INSTANCE;
|
return JsonNull.INSTANCE;
|
||||||
|
Loading…
Reference in New Issue
Block a user