From 8327fd7cab780d505e435bee401bccf1ca649256 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sat, 22 Aug 2026 23:28:48 +0200 Subject: [PATCH] feat: add fallback for album and album artist --- src/main.rs | 43 +++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7acd983..b871461 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ use clap::{Parser, Subcommand}; use lofty::file::TaggedFileExt; +use lofty::prelude::ItemKey; use lofty::probe::Probe; use lofty::tag::Accessor; use lofty::tag::Tag; @@ -35,9 +36,6 @@ fn main() -> Result<(), Box> { for item in tag.items() { println!("{:?}", item) } - - let album_artist = tag.get_string(lofty::tag::ItemKey::AlbumArtist); - println!("AlbumArtist: {:?}", album_artist); } } @@ -63,34 +61,27 @@ fn move_files(file_path: PathBuf, tag: Tag) -> Result<(), Box