From 0f17811c403f4e5c80dcc43edadcebfc70950eaa Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sat, 9 Nov 2024 14:03:26 +0000 Subject: [PATCH] mpd: fix issue with command_list_begin --- crates/mpd/src/handlers/batch.rs | 2 -- crates/mpd/src/handlers/playback.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/mpd/src/handlers/batch.rs b/crates/mpd/src/handlers/batch.rs index fcab7ec6ea..b88115dd5e 100644 --- a/crates/mpd/src/handlers/batch.rs +++ b/crates/mpd/src/handlers/batch.rs @@ -79,8 +79,6 @@ pub async fn handle_command_list_begin( }); } - let mut response = response.replace("OK\n", "list_OK\n"); - response.push_str("OK\n"); stream.write_all(response.as_bytes()).await?; Ok(response) diff --git a/crates/mpd/src/handlers/playback.rs b/crates/mpd/src/handlers/playback.rs index dd18f7f26a..532a29f8d9 100644 --- a/crates/mpd/src/handlers/playback.rs +++ b/crates/mpd/src/handlers/playback.rs @@ -314,7 +314,7 @@ pub async fn handle_repeat( pub async fn handle_getvol( ctx: &mut Context, - request: &str, + _request: &str, stream: &mut BufReader, ) -> Result { let response = ctx