Set meta bug fix #27

Merged
phoenix merged 7 commits from fix_set_meta into devel 2025-06-21 01:01:54 +00:00
Showing only changes of commit 474dde4445 - Show all commits

View File

@@ -220,9 +220,15 @@ pub mod metadata {
}
};
vb.save_to_path(filepath, lofty::config::WriteOptions::default());
Ok(value.to_owned())
match vb.save_to_path(filepath, lofty::config::WriteOptions::default()) {
Ok(res) => {
println!("Result: {:?}", res);
Ok(value.to_owned())
}
Err(err) => {
Err(std::io::Error::new(std::io::ErrorKind::InvalidData, err.to_string()))
}
}
}
None => Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,
@@ -582,8 +588,7 @@ mod tests {
let dir = String::from(util::TESTFILEDIRECTORY);
let temp_file = tempfile::tempdir().expect("Could not create test directory");
let mut test_dir = String::from(temp_file.path().to_str().unwrap());
test_dir = String::from("/home/phoenix/tmp/songparser/mydata");
let test_dir = String::from(temp_file.path().to_str().unwrap());
let test_filename = String::from("track08.flac");
let new_filepath = test_dir + "/" + &test_filename;