Refactoring (#30)

Reviewed-on: #30
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-06-24 23:01:59 +00:00
committed by phoenix
parent 8f55b28fbe
commit 68e6c4e025
4 changed files with 590 additions and 4 deletions
+2 -2
View File
@@ -135,12 +135,12 @@ 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;
use crate::types;
pub fn get_meta(t: types::Type, filepath: &String) -> Result<String, std::io::Error> {
match std::fs::File::open(filepath) {
Ok(mut content) => {
+1 -1
View File
@@ -1,4 +1,4 @@
// TODO: Have this derive Debug
#[derive(Debug)]
pub enum Type {
Title,
Artist,