diff --git a/crates/oxidize-api/src/spotify.rs b/crates/oxidize-api/src/spotify.rs index c59178c7..3c74118f 100644 --- a/crates/oxidize-api/src/spotify.rs +++ b/crates/oxidize-api/src/spotify.rs @@ -279,11 +279,11 @@ impl Spotify { } } -/// Handle device control requests. +/// Handle device control responses. fn device_control(status: StatusCode, _: &C) -> Result> { match status { - StatusCode::NO_CONTENT => Ok(Some(true)), StatusCode::NOT_FOUND => Ok(Some(false)), + status if status.is_success() => Ok(Some(true)), _ => Ok(None), } }