tsk-45: Identify type of Song #48

Merged
phoenix merged 15 commits from tsk-45 into main 2025-10-22 02:26:19 +00:00
Showing only changes of commit 60d30bff01 - Show all commits

View File

@@ -20,7 +20,7 @@ pub fn file_type_from_filepath(
}
/// Gets the file type of a Song given it's data
pub fn file_type_from_data(data: &Vec<u8>) -> Result<crate::detection::FileType, std::io::Error> {
pub fn file_type_from_data(data: &[u8]) -> Result<crate::detection::FileType, std::io::Error> {
match infer::get(data) {
Some(kind) => {
let mime = kind.mime_type();