tsk-56: Replaced hard coded file extension

This commit is contained in:
2025-10-22 12:25:20 -04:00
parent d8c5e6f47c
commit 965cce4c1f

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 {
"" ""
}; };