feat(library): allow mp3 in local library
This commit is contained in:
1 parent
48c7649609
commit
d4716af0d2
5 files changed
+8
-3
No files matched your search
@@ -414,6 +414,7 @@ impl MetadataExtractor {
|
||||
Some("wav") => AudioFormat::Wav,
|
||||
Some("aiff") | Some("aif") => AudioFormat::Aiff,
|
||||
Some("ape") => AudioFormat::Ape,
|
||||
Some("mp3") => AudioFormat::Mp3,
|
||||
_ => AudioFormat::Unknown,
|
||||
}
|
||||
}
|
||||
@@ -665,7 +666,7 @@ mod tests {
|
||||
);
|
||||
assert_eq!(
|
||||
MetadataExtractor::detect_format(Path::new("test.mp3")),
|
||||
AudioFormat::Unknown
|
||||
AudioFormat::Mp3
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user