tsk-212: Identify type of CoverArt #214
@@ -502,9 +502,9 @@ pub mod cov_db {
|
|||||||
mod helper {
|
mod helper {
|
||||||
pub fn is_coverart_file_type_valid(file_type: &String) -> bool {
|
pub fn is_coverart_file_type_valid(file_type: &String) -> bool {
|
||||||
let valid_file_types = vec![
|
let valid_file_types = vec![
|
||||||
String::from("png"),
|
String::from(icarus_meta::detection::coverart::constants::JPEG_TYPE),
|
||||||
String::from("jpg"),
|
String::from(icarus_meta::detection::coverart::constants::JPG_TYPE),
|
||||||
String::from("jpeg"),
|
String::from(icarus_meta::detection::coverart::constants::PNG_TYPE),
|
||||||
];
|
];
|
||||||
|
|
||||||
for valid_file_type in valid_file_types {
|
for valid_file_type in valid_file_types {
|
||||||
|
|||||||
Reference in New Issue
Block a user