From ea6f65a20670ec17f16c6a9ba65ee5b4d07b1860 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 10 Oct 2025 15:16:12 -0400 Subject: [PATCH 01/13] icarus_envy version bump --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c7e55d6..b973b48 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -516,8 +516,8 @@ dependencies = [ [[package]] name = "icarus_envy" -version = "0.3.2" -source = "git+ssh://git@git.kundeng.us/phoenix/icarus_envy.git?tag=v0.3.2#d84a8144aedf02e1b459d67c4023a7e0833f89fd" +version = "0.4.1" +source = "git+ssh://git@git.kundeng.us/phoenix/icarus_envy.git?tag=v0.4.1-main-8f0d123db5-006#8f0d123db51b18e9cc4ab5bd39a474ba99bd39c3" dependencies = [ "const_format", "dotenvy", diff --git a/Cargo.toml b/Cargo.toml index 43d6682..3189615 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,4 @@ uuid = { version = "1.17.0", features = ["v4", "serde"] } rand = { version = "0.9.1" } icarus_meta = { git = "ssh://git@git.kundeng.us/phoenix/icarus_meta.git", tag = "v0.3.0" } icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.5.6" } -icarus_envy = { git = "ssh://git@git.kundeng.us/phoenix/icarus_envy.git", tag = "v0.3.2" } +icarus_envy = { git = "ssh://git@git.kundeng.us/phoenix/icarus_envy.git", tag = "v0.4.1-main-8f0d123db5-006" } -- 2.43.0 From c37ecaa8dcd68abdd49a9b1cca19f8e81dcd6445 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:15:02 -0400 Subject: [PATCH 02/13] Assigned values to directory and filename member fields --- src/main.rs | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index 88c20d9..f54b1c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,7 +59,6 @@ async fn main() -> Result<(), Box> { let song_queue_id = song_queue_item.data[0].id; let user_id = song_queue_item.data[0].user_id; - // TODO: Do something with the result later match some_work(&app, &song_queue_id, &user_id).await { Ok(( song, @@ -255,7 +254,12 @@ async fn some_work( std::io::Error, > { match prep_song(app, song_queue_id).await { - Ok((song_queue_path, coverart_queue_path, metadata, coverart_queue_id)) => { + Ok(((song_directory, song_filename), coverart_queue_path, metadata, coverart_queue_id)) => { + let mut song_queue_path: String = String::new(); + let p = std::path::Path::new(&song_directory); + let sp = p.join(&song_filename); + song_queue_path.push_str(sp.to_str().unwrap_or_default()); + match apply_metadata(&song_queue_path, &coverart_queue_path, &metadata).await { Ok(_applied) => { match update_queued_song::update_queued_song( @@ -285,10 +289,12 @@ async fn some_work( .json::() .await { - Ok(resp) => { + Ok(mut resp) => { println!("Response: {resp:?}"); - let song = &resp.data[0]; + let song = &mut resp.data[0]; + song.directory = song_directory; + song.filename = song_filename; match the_rest::create_coverart::create(app, &song.id, &coverart_queue_id).await { Ok(response) => match response.json::().await { Ok(resp) => { @@ -329,7 +335,7 @@ async fn prep_song( song_queue_id: &uuid::Uuid, ) -> Result< ( - String, + (String, String), String, api::get_metadata_queue::response::Metadata, uuid::Uuid, @@ -341,10 +347,11 @@ async fn prep_song( // Process data here... match api::parsing::parse_response_into_bytes(response).await { Ok(song_bytes) => { - let (directory, filename) = generate_song_queue_dir_and_filename().await; + let (song_directory, song_filename) = + generate_song_queue_dir_and_filename().await; let song = icarus_models::song::Song { - directory, - filename, + directory: song_directory, + filename: song_filename, data: song_bytes, ..Default::default() }; @@ -392,8 +399,8 @@ async fn prep_song( println!("Saved coverart queue file at: {coverart_queue_path:?}"); let c_path = util::path_buf_to_string(coverart_queue_path); - let s_path = util::path_buf_to_string(song_queue_path); - Ok((s_path, c_path, metadata.clone(), *coverart_queue_id)) + // let s_path = util::path_buf_to_string(song_queue_path); + Ok(((song.directory, song.filename), c_path, metadata.clone(), *coverart_queue_id)) } Err(err) => { Err(err) -- 2.43.0 From 988dfe9379965e7db336adbd5d3450dd60ccad79 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:42:57 -0400 Subject: [PATCH 03/13] Fixed the bug --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f54b1c9..cbb3199 100644 --- a/src/main.rs +++ b/src/main.rs @@ -289,18 +289,20 @@ async fn some_work( .json::() .await { - Ok(mut resp) => { + Ok(resp) => { println!("Response: {resp:?}"); - let song = &mut resp.data[0]; + let mut song = resp.data[0].clone(); song.directory = song_directory; song.filename = song_filename; + match the_rest::create_coverart::create(app, &song.id, &coverart_queue_id).await { Ok(response) => match response.json::().await { Ok(resp) => { println!("CoverArt sent and successfully parsed response"); println!("json: {resp:?}"); - let coverart = &resp.data[0]; + let mut coverart = resp.data[0].clone(); + coverart.path = coverart_queue_path.clone(); Ok((song.clone(), coverart.clone(), (metadata.song_queue_id, song_queue_path), (coverart_queue_id, coverart_queue_path))) } Err(err) => { -- 2.43.0 From 74948ff8a46b0cb48edcbfe0f9a898d0c3263c13 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:45:21 -0400 Subject: [PATCH 04/13] Change --- src/update_queued_song.rs | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/src/update_queued_song.rs b/src/update_queued_song.rs index 7a95dac..e69de29 100644 --- a/src/update_queued_song.rs +++ b/src/update_queued_song.rs @@ -1,36 +0,0 @@ -pub async fn update_queued_song( - app: &crate::config::App, - song_path: &String, - song_queue_id: &uuid::Uuid, -) -> Result { - let client = reqwest::Client::builder().build()?; - - println!("Song path: {song_path:?}"); - - // TODO: Make the filename random - let form = reqwest::multipart::Form::new().part( - "file", - reqwest::multipart::Part::bytes(std::fs::read(song_path).unwrap()) - .file_name("track01.flac"), - ); - - let url = format!("{}/api/v2/song/queue/{song_queue_id}", app.uri); - println!("Url: {url:?}"); - - let (key, header) = crate::api::auth_header(app).await; - let request = client.patch(url).multipart(form).header(key, header); - - let response = request.send().await?; - - Ok(response) -} - -pub mod response { - use serde::{Deserialize, Serialize}; - - #[derive(Debug, Deserialize, Serialize)] - pub struct Response { - pub message: String, - pub data: Vec, - } -} -- 2.43.0 From d55f3b2e4657710f1dcce1a24d0d2163e4d77c8f Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:45:31 -0400 Subject: [PATCH 05/13] Removed file --- src/update_queued_song.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/update_queued_song.rs diff --git a/src/update_queued_song.rs b/src/update_queued_song.rs deleted file mode 100644 index e69de29..0000000 -- 2.43.0 From f4972c8caf9d417c8eb2a66f7821eb0c5d396ea0 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:47:05 -0400 Subject: [PATCH 06/13] Code refactoring --- src/api.rs | 39 +++++++++++++++++++++++++++++++++++++++ src/main.rs | 5 ++--- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/api.rs b/src/api.rs index ff23283..3673a36 100644 --- a/src/api.rs +++ b/src/api.rs @@ -167,3 +167,42 @@ pub mod refresh_token { } } } + +pub mod update_queued_song { + pub async fn update_queued_song( + app: &crate::config::App, + song_path: &String, + song_queue_id: &uuid::Uuid, + ) -> Result { + let client = reqwest::Client::builder().build()?; + + println!("Song path: {song_path:?}"); + + // TODO: Make the filename random + let form = reqwest::multipart::Form::new().part( + "file", + reqwest::multipart::Part::bytes(std::fs::read(song_path).unwrap()) + .file_name("track01.flac"), + ); + + let url = format!("{}/api/v2/song/queue/{song_queue_id}", app.uri); + println!("Url: {url:?}"); + + let (key, header) = crate::api::auth_header(app).await; + let request = client.patch(url).multipart(form).header(key, header); + + let response = request.send().await?; + + Ok(response) + } + + pub mod response { + use serde::{Deserialize, Serialize}; + + #[derive(Debug, Deserialize, Serialize)] + pub struct Response { + pub message: String, + pub data: Vec, + } + } +} diff --git a/src/main.rs b/src/main.rs index cbb3199..f898af4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,6 @@ pub mod api; pub mod config; pub mod responses; pub mod the_rest; -pub mod update_queued_song; pub mod util; pub const SECONDS_TO_SLEEP: u64 = 5; @@ -262,7 +261,7 @@ async fn some_work( match apply_metadata(&song_queue_path, &coverart_queue_path, &metadata).await { Ok(_applied) => { - match update_queued_song::update_queued_song( + match api::update_queued_song::update_queued_song( app, &song_queue_path, song_queue_id, @@ -271,7 +270,7 @@ async fn some_work( { Ok(response) => { match response - .json::() + .json::() .await { Ok(_inner_response) => { -- 2.43.0 From 0883def73515b5f986490c98652060d976c53ec8 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:49:48 -0400 Subject: [PATCH 07/13] Code change --- src/responses.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/responses.rs b/src/responses.rs index 3f990a5..e69de29 100644 --- a/src/responses.rs +++ b/src/responses.rs @@ -1,17 +0,0 @@ -pub mod fetch_next_queue_item { - use serde::{Deserialize, Serialize}; - - #[derive(Debug, Deserialize, Serialize)] - pub struct QueueItem { - pub id: uuid::Uuid, - pub filename: String, - pub status: String, - pub user_id: uuid::Uuid, - } - - #[derive(Debug, Deserialize, Serialize)] - pub struct SongQueueItem { - pub message: String, - pub data: Vec, - } -} -- 2.43.0 From c8eb9521f72b4a36e07450d0f8a8fcffa5e933a0 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:50:00 -0400 Subject: [PATCH 08/13] Removing file --- src/responses.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/responses.rs diff --git a/src/responses.rs b/src/responses.rs deleted file mode 100644 index e69de29..0000000 -- 2.43.0 From 8c400ed11d0aef2491116e503609698ecef89a98 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:52:06 -0400 Subject: [PATCH 09/13] Code refactoring --- src/api.rs | 39 +++++++++++++++++++++++++++++++-------- src/main.rs | 7 +++---- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/api.rs b/src/api.rs index 3673a36..a5a1470 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1,12 +1,35 @@ -pub async fn fetch_next_queue_item( - app: &crate::config::App, -) -> Result { - let client = reqwest::Client::new(); - let fetch_endpoint = String::from("api/v2/song/queue/next"); - let api_url = format!("{}/{fetch_endpoint}", app.uri); - let (key, header) = auth_header(app).await; - client.get(api_url).header(key, header).send().await +pub mod fetch_next_queue_item { + + pub async fn fetch_next_queue_item( + app: &crate::config::App, + ) -> Result { + let client = reqwest::Client::new(); + let fetch_endpoint = String::from("api/v2/song/queue/next"); + let api_url = format!("{}/{fetch_endpoint}", app.uri); + let (key, header) = super::auth_header(app).await; + + client.get(api_url).header(key, header).send().await + } + + pub mod response { + use serde::{Deserialize, Serialize}; + + + #[derive(Debug, Deserialize, Serialize)] + pub struct QueueItem { + pub id: uuid::Uuid, + pub filename: String, + pub status: String, + pub user_id: uuid::Uuid, + } + + #[derive(Debug, Deserialize, Serialize)] + pub struct SongQueueItem { + pub message: String, + pub data: Vec, + } + } } pub async fn auth_header( diff --git a/src/main.rs b/src/main.rs index f898af4..e06b949 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ pub mod api; pub mod config; -pub mod responses; pub mod the_rest; pub mod util; @@ -218,11 +217,11 @@ async fn cleanup( async fn is_queue_empty( app: &config::App, -) -> Result<(bool, responses::fetch_next_queue_item::SongQueueItem), reqwest::Error> { - match api::fetch_next_queue_item(app).await { +) -> Result<(bool, api::fetch_next_queue_item::response::SongQueueItem), reqwest::Error> { + match api::fetch_next_queue_item::fetch_next_queue_item(app).await { Ok(response) => { match response - .json::() + .json::() .await { Ok(response) => { -- 2.43.0 From c64ecd8a54c6c27f2bd57b778903ea661da34ce9 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:53:16 -0400 Subject: [PATCH 10/13] Removed file --- src/the_rest.rs | 128 ------------------------------------------------ 1 file changed, 128 deletions(-) delete mode 100644 src/the_rest.rs diff --git a/src/the_rest.rs b/src/the_rest.rs deleted file mode 100644 index 5d66e39..0000000 --- a/src/the_rest.rs +++ /dev/null @@ -1,128 +0,0 @@ -// TODO: Refactor this file when this app is functional - -pub mod create_song { - pub async fn create( - app: &crate::config::App, - metadata_queue: &crate::api::get_metadata_queue::response::Metadata, - user_id: &uuid::Uuid, - song_type: &String, - ) -> Result { - let payload = serde_json::json!( - { - "album": &metadata_queue.album, - "album_artist": &metadata_queue.album_artist, - "artist": &metadata_queue.artist, - "disc": metadata_queue.disc, - "disc_count": metadata_queue.disc_count, - "duration": metadata_queue.duration, - "genre": &metadata_queue.genre, - "title": &metadata_queue.title, - "track": metadata_queue.track, - "track_count": metadata_queue.track_count, - "date": metadata_queue.year.to_string(), - "audio_type": &song_type, - "user_id": &user_id, - "song_queue_id": &metadata_queue.song_queue_id, - } - ); - - let client = reqwest::Client::builder().build()?; - - let url = format!("{}/api/v2/song", app.uri); - let (key, header) = crate::api::auth_header(app).await; - - let request = client.post(url).json(&payload).header(key, header); - request.send().await - } - - pub mod response { - #[derive(Debug, serde::Deserialize, serde::Serialize)] - pub struct Response { - pub message: String, - pub data: Vec, - } - } -} - -pub mod create_coverart { - - pub async fn create( - app: &crate::config::App, - song_id: &uuid::Uuid, - coverart_queue_id: &uuid::Uuid, - ) -> Result { - let client = reqwest::Client::builder().build()?; - let url = format!("{}/api/v2/coverart", app.uri); - let payload = get_payload(song_id, coverart_queue_id); - let (key, header) = crate::api::auth_header(app).await; - let request = client.post(url).json(&payload).header(key, header); - - request.send().await - } - - fn get_payload(song_id: &uuid::Uuid, coverart_queue_id: &uuid::Uuid) -> serde_json::Value { - serde_json::json!({ - "song_id": &song_id, - "coverart_queue_id": &coverart_queue_id, - }) - } - - pub mod response { - #[derive(Debug, serde::Deserialize, serde::Serialize)] - pub struct Response { - pub message: String, - pub data: Vec, - } - } -} - -pub mod wipe_data { - pub mod song_queue { - pub async fn wipe_data( - app: &crate::config::App, - song_queue_id: &uuid::Uuid, - ) -> Result { - let client = reqwest::Client::builder().build()?; - let url = format!("{}/api/v2/song/queue/data/wipe", app.uri); - let payload = serde_json::json!({ - "song_queue_id": song_queue_id - }); - let (key, header) = crate::api::auth_header(app).await; - let request = client.patch(url).json(&payload).header(key, header); - - request.send().await - } - - pub mod response { - #[derive(Debug, serde::Deserialize, serde::Serialize)] - pub struct Response { - pub message: String, - pub data: Vec, - } - } - } - pub mod coverart_queue { - pub async fn wipe_data( - app: &crate::config::App, - coverart_queue_id: &uuid::Uuid, - ) -> Result { - let client = reqwest::Client::builder().build()?; - let url = format!("{}/api/v2/coverart/queue/data/wipe", app.uri); - let payload = serde_json::json!({ - "coverart_queue_id": coverart_queue_id - }); - let (key, header) = crate::api::auth_header(app).await; - let request = client.patch(url).json(&payload).header(key, header); - - request.send().await - } - - pub mod response { - #[derive(Debug, serde::Deserialize, serde::Serialize)] - pub struct Response { - pub message: String, - pub data: Vec, - } - } - } -} -- 2.43.0 From f174239c2ee4affbdc5f0c8e1b274d91038aa7f8 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:54:52 -0400 Subject: [PATCH 11/13] Code formatting --- src/api.rs | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++- src/main.rs | 17 ++++--- 2 files changed, 135 insertions(+), 11 deletions(-) diff --git a/src/api.rs b/src/api.rs index a5a1470..7beaec0 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1,4 +1,3 @@ - pub mod fetch_next_queue_item { pub async fn fetch_next_queue_item( @@ -15,7 +14,6 @@ pub mod fetch_next_queue_item { pub mod response { use serde::{Deserialize, Serialize}; - #[derive(Debug, Deserialize, Serialize)] pub struct QueueItem { pub id: uuid::Uuid, @@ -229,3 +227,130 @@ pub mod update_queued_song { } } } + +pub mod create_song { + pub async fn create( + app: &crate::config::App, + metadata_queue: &crate::api::get_metadata_queue::response::Metadata, + user_id: &uuid::Uuid, + song_type: &String, + ) -> Result { + let payload = serde_json::json!( + { + "album": &metadata_queue.album, + "album_artist": &metadata_queue.album_artist, + "artist": &metadata_queue.artist, + "disc": metadata_queue.disc, + "disc_count": metadata_queue.disc_count, + "duration": metadata_queue.duration, + "genre": &metadata_queue.genre, + "title": &metadata_queue.title, + "track": metadata_queue.track, + "track_count": metadata_queue.track_count, + "date": metadata_queue.year.to_string(), + "audio_type": &song_type, + "user_id": &user_id, + "song_queue_id": &metadata_queue.song_queue_id, + } + ); + + let client = reqwest::Client::builder().build()?; + + let url = format!("{}/api/v2/song", app.uri); + let (key, header) = crate::api::auth_header(app).await; + + let request = client.post(url).json(&payload).header(key, header); + request.send().await + } + + pub mod response { + #[derive(Debug, serde::Deserialize, serde::Serialize)] + pub struct Response { + pub message: String, + pub data: Vec, + } + } +} + +pub mod create_coverart { + + pub async fn create( + app: &crate::config::App, + song_id: &uuid::Uuid, + coverart_queue_id: &uuid::Uuid, + ) -> Result { + let client = reqwest::Client::builder().build()?; + let url = format!("{}/api/v2/coverart", app.uri); + let payload = get_payload(song_id, coverart_queue_id); + let (key, header) = crate::api::auth_header(app).await; + let request = client.post(url).json(&payload).header(key, header); + + request.send().await + } + + fn get_payload(song_id: &uuid::Uuid, coverart_queue_id: &uuid::Uuid) -> serde_json::Value { + serde_json::json!({ + "song_id": &song_id, + "coverart_queue_id": &coverart_queue_id, + }) + } + + pub mod response { + #[derive(Debug, serde::Deserialize, serde::Serialize)] + pub struct Response { + pub message: String, + pub data: Vec, + } + } +} + +pub mod wipe_data { + pub mod song_queue { + pub async fn wipe_data( + app: &crate::config::App, + song_queue_id: &uuid::Uuid, + ) -> Result { + let client = reqwest::Client::builder().build()?; + let url = format!("{}/api/v2/song/queue/data/wipe", app.uri); + let payload = serde_json::json!({ + "song_queue_id": song_queue_id + }); + let (key, header) = crate::api::auth_header(app).await; + let request = client.patch(url).json(&payload).header(key, header); + + request.send().await + } + + pub mod response { + #[derive(Debug, serde::Deserialize, serde::Serialize)] + pub struct Response { + pub message: String, + pub data: Vec, + } + } + } + pub mod coverart_queue { + pub async fn wipe_data( + app: &crate::config::App, + coverart_queue_id: &uuid::Uuid, + ) -> Result { + let client = reqwest::Client::builder().build()?; + let url = format!("{}/api/v2/coverart/queue/data/wipe", app.uri); + let payload = serde_json::json!({ + "coverart_queue_id": coverart_queue_id + }); + let (key, header) = crate::api::auth_header(app).await; + let request = client.patch(url).json(&payload).header(key, header); + + request.send().await + } + + pub mod response { + #[derive(Debug, serde::Deserialize, serde::Serialize)] + pub struct Response { + pub message: String, + pub data: Vec, + } + } + } +} diff --git a/src/main.rs b/src/main.rs index e06b949..0a28c7e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ pub mod api; pub mod config; -pub mod the_rest; pub mod util; pub const SECONDS_TO_SLEEP: u64 = 5; @@ -171,15 +170,15 @@ async fn wipe_data_from_queues( song_queue_id: &uuid::Uuid, coverart_queue_id: &uuid::Uuid, ) -> Result<(), std::io::Error> { - match the_rest::wipe_data::song_queue::wipe_data(app, song_queue_id).await { + match api::wipe_data::song_queue::wipe_data(app, song_queue_id).await { Ok(response) => match response - .json::() + .json::() .await { Ok(_resp) => { - match the_rest::wipe_data::coverart_queue::wipe_data(app, coverart_queue_id).await { + match api::wipe_data::coverart_queue::wipe_data(app, coverart_queue_id).await { Ok(inner_response) => match inner_response - .json::() + .json::() .await { Ok(_inner_resp) => { @@ -278,13 +277,13 @@ async fn some_work( // TODO: Place this somewhere else let song_type = String::from("flac"); - match the_rest::create_song::create( + match api::create_song::create( app, &metadata, user_id, &song_type, ) .await { Ok(response) => match response - .json::() + .json::() .await { Ok(resp) => { @@ -294,8 +293,8 @@ async fn some_work( song.directory = song_directory; song.filename = song_filename; - match the_rest::create_coverart::create(app, &song.id, &coverart_queue_id).await { - Ok(response) => match response.json::().await { + match api::create_coverart::create(app, &song.id, &coverart_queue_id).await { + Ok(response) => match response.json::().await { Ok(resp) => { println!("CoverArt sent and successfully parsed response"); println!("json: {resp:?}"); -- 2.43.0 From 66c3b0029ec398c143e2f6b0c37d4582a01e3faf Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 21:55:24 -0400 Subject: [PATCH 12/13] Version bump --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f702a6c..a08966e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1349,7 +1349,7 @@ dependencies = [ [[package]] name = "songparser" -version = "0.4.0" +version = "0.4.1" dependencies = [ "futures", "icarus_envy", diff --git a/Cargo.toml b/Cargo.toml index 50e39f1..8559bc1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "songparser" -version = "0.4.0" +version = "0.4.1" edition = "2024" rust-version = "1.90" -- 2.43.0 From 84c1c10fb8c048e165875e89e354b6ae2ec7a42a Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Oct 2025 22:04:11 -0400 Subject: [PATCH 13/13] Removed commented code --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0a28c7e..a8a92ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -398,7 +398,6 @@ async fn prep_song( println!("Saved coverart queue file at: {coverart_queue_path:?}"); let c_path = util::path_buf_to_string(coverart_queue_path); - // let s_path = util::path_buf_to_string(song_queue_path); Ok(((song.directory, song.filename), c_path, metadata.clone(), *coverart_queue_id)) } Err(err) => { -- 2.43.0