diff --git a/src/main.rs b/src/main.rs index 5bb917b..19bc2f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -433,9 +433,11 @@ pub async fn generate_coverart_queue_dir_and_filename(file_type: &str) -> (Strin } } - filename += if file_type == "jpeg" || file_type == "jpg" { + filename += if file_type == icarus_meta::detection::coverart::constants::JPEG_TYPE + || file_type == icarus_meta::detection::coverart::constants::JPG_TYPE + { ".jpeg" - } else if file_type == "png" { + } else if file_type == icarus_meta::detection::coverart::constants::PNG_TYPE { ".png" } else { ""