Compare commits

..

3 Commits

Author SHA1 Message Date
phoenix 2a798dea9c Next release (#14)
Reviewed-on: #14
2025-04-19 21:27:21 +00:00
phoenix 5e57b9146c Release (#8)
Reviewed-on: #8
2025-04-12 19:32:16 +00:00
phoenix 0dc8c153d2 devel (#3)
Reviewed-on: #3
2025-03-30 18:11:03 +00:00
+1 -10
View File
@@ -135,11 +135,9 @@ pub mod coverart {
}
pub mod metadata {
// TODO: Move this at the end after the non-std crates
use crate::types;
use lofty::file::AudioFile;
use lofty::tag::Accessor;
use lofty::tag::TagExt;
pub fn get_meta(t: types::Type, filepath: &String) -> Result<String, std::io::Error> {
match std::fs::File::open(filepath) {
@@ -221,14 +219,7 @@ pub mod metadata {
}
};
match vb.save_to_path(filepath, lofty::config::WriteOptions::default())
{
Ok(_) => Ok(value.to_owned()),
Err(err) => Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,
err.to_string(),
)),
}
Ok(value.to_owned())
}
None => Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,