Code reorganizing #17

Merged
phoenix merged 5 commits from code_reorg into devel 2025-04-13 20:30:12 +00:00
Showing only changes of commit b2a318f9ac - Show all commits

View File

@@ -1,6 +1,5 @@
use lofty::file::AudioFile;
// use ty
use crate::types;
fn get_type(t: types::Type) -> Result<String, std::io::Error> {
@@ -21,7 +20,6 @@ pub fn get_meta(t: types::Type, filepath: &String) -> Result<String, std::io::Er
{
Ok(flac_file) => match flac_file.vorbis_comments() {
Some(vb) => {
println!("Info: {:?}", vb);
let type_str: String = get_type(t).unwrap();
match vb.get(&type_str) {
Some(val) => Ok(val.to_owned()),