From 2cd11fd0d3f8f9b426194dae86c14d08f73de324 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 28 Jun 2025 19:08:27 -0400 Subject: [PATCH] Code cleanup --- src/update_queued_song.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/update_queued_song.rs b/src/update_queued_song.rs index a471ff4..6c04a37 100644 --- a/src/update_queued_song.rs +++ b/src/update_queued_song.rs @@ -1,4 +1,3 @@ -// TODO: Update the queued song with the updated queued song pub async fn update_queued_song( base_url: &String, song_path: &String, @@ -14,27 +13,15 @@ pub async fn update_queued_song( .file_name("track01.flac"), ); - // let method = "PATCH"; let url = format!("{}/api/v2/song/queue/{}", base_url, song_queue_id); println!("Url: {:?}", url); - let content_type = "audio/flac"; - // let mut headers = reqwest::header::HeaderMap::new(); - // headers.insert(reqwest::header::CONTENT_TYPE, reqwest::header::HeaderValue::from_static(content_type)); - let request = client - // .request(reqwest::Method::from_bytes(method.as_bytes()).unwrap(), url) .patch(url) - // .headers(headers) .multipart(form); - println!("Request prepared"); - println!("Request {:?}", request); - let response = request.send().await?; - println!("Sent"); - Ok(response) }