From d8c5e6f47c6846b53d7b3ec041335f5cafc6999b Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 22 Oct 2025 12:23:40 -0400 Subject: [PATCH 1/4] tsk-56: Removed todo --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index b83e0f7..897f8c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -232,8 +232,7 @@ async fn some_work( println!("Updated queued song"); println!("Response: {_inner_response:?}"); - // TODO: Place this somewhere else - let song_type = String::from("flac"); + let song_type = String::from(icarus_meta::detection::song::constants::FLAC_TYPE); match api::create_song::create( app, &metadata, user_id, &song_type, -- 2.43.0 From 965cce4c1f0b4d88761f4e2d6a6e9f5ecd659e82 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 22 Oct 2025 12:25:20 -0400 Subject: [PATCH 2/4] tsk-56: Replaced hard coded file extension --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 897f8c1..30f743c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -423,9 +423,9 @@ pub async fn generate_coverart_queue_dir_and_filename(file_type: &str) -> (Strin filename += if file_type == icarus_meta::detection::coverart::constants::JPEG_TYPE || file_type == icarus_meta::detection::coverart::constants::JPG_TYPE { - ".jpeg" + icarus_models::constants::file_extensions::image::JPEGEXTENSION } else if file_type == icarus_meta::detection::coverart::constants::PNG_TYPE { - ".png" + icarus_models::constants::file_extensions::image::PNGEXTENSION } else { "" }; -- 2.43.0 From 4fdaa4bfe2e661a3f530365d5164e06ac32fb6de Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 22 Oct 2025 12:25:52 -0400 Subject: [PATCH 3/4] tsk-56: Code formatting --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 30f743c..92c7ee8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -232,7 +232,9 @@ async fn some_work( println!("Updated queued song"); println!("Response: {_inner_response:?}"); - let song_type = String::from(icarus_meta::detection::song::constants::FLAC_TYPE); + let song_type = String::from( + icarus_meta::detection::song::constants::FLAC_TYPE, + ); match api::create_song::create( app, &metadata, user_id, &song_type, -- 2.43.0 From 1dab502eef5de8e48bde496ada878bddafbfc726 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 22 Oct 2025 12:26:04 -0400 Subject: [PATCH 4/4] tsk-56: Version bump --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9aeaaf1..079b236 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1322,7 +1322,7 @@ dependencies = [ [[package]] name = "songparser" -version = "0.4.5" +version = "0.4.6" dependencies = [ "futures", "icarus_envy", diff --git a/Cargo.toml b/Cargo.toml index 94f4ddc..7c4ce71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "songparser" -version = "0.4.5" +version = "0.4.6" edition = "2024" rust-version = "1.90" -- 2.43.0