fix(library): normalize tag fields

This commit is contained in:
vicrodh committed 2026-01-13 09:18:41 -06:00
1 parent 0de536b1a0
commit 4f16ec044b
1 file changed
+2 -2
+2 -2
View File
@@ -161,10 +161,10 @@ impl MetadataExtractor {
.title()
.map(|s| s.to_string())
.unwrap_or(filename),
artist: Self::normalize_field(tag.artist())
artist: Self::normalize_field(tag.artist().as_deref())
.or_else(|| fallback_artist.clone())
.unwrap_or_else(|| "Unknown Artist".to_string()),
album: Self::normalize_field(tag.album())
album: Self::normalize_field(tag.album().as_deref())
.or_else(|| fallback_album.clone())
.unwrap_or_else(|| "Unknown Album".to_string()),
album_artist: tag.get_string(&ItemKey::AlbumArtist).map(|s| s.to_string()),