tsk-56: Replaced hard coded file extension
This commit is contained in:
@@ -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 {
|
||||
""
|
||||
};
|
||||
|
Reference in New Issue
Block a user