From 8f4c4a0c2b14eeeaeccb972a40addb11f3d65437 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Thu, 19 Mar 2026 08:42:53 -0400 Subject: [PATCH] fix(19-01): add album_artist TPE2 mapping to applyTextChanges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Map FieldAlbumArtist to TPE2 frame via CommonID - Follows same pattern as FieldComposer → TCOM - Fixes latent gap in MP3 writing, enables WAV reuse --- backend/tagwriter/mp3.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/tagwriter/mp3.go b/backend/tagwriter/mp3.go index 8225047..b654a7d 100644 --- a/backend/tagwriter/mp3.go +++ b/backend/tagwriter/mp3.go @@ -82,6 +82,12 @@ func applyTextChanges(tag *id3v2.Tag, changes TagChanges) { tag.DeleteFrames("TCOM") tag.AddTextFrame("TCOM", id3v2.EncodingUTF8, v) } + + if v, ok := changes[FieldAlbumArtist].(string); ok { + tpe2ID := tag.CommonID("Band/Orchestra/Accompaniment") + tag.DeleteFrames(tpe2ID) + tag.AddTextFrame(tpe2ID, id3v2.EncodingUTF8, v) + } } // applyCoverArtChanges handles the FieldCoverArt entry in the diff map.