tsk-56: Address hard coded file extensions #63

Merged
phoenix merged 4 commits from tsk-56 into main 2025-10-22 16:34:11 +00:00
Showing only changes of commit 965cce4c1f - Show all commits

View File

@@ -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 filename += if file_type == icarus_meta::detection::coverart::constants::JPEG_TYPE
|| file_type == icarus_meta::detection::coverart::constants::JPG_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 { } else if file_type == icarus_meta::detection::coverart::constants::PNG_TYPE {
".png" icarus_models::constants::file_extensions::image::PNGEXTENSION
} else { } else {
"" ""
}; };