fix(19-01): add album_artist TPE2 mapping to applyTextChanges

- Map FieldAlbumArtist to TPE2 frame via CommonID
- Follows same pattern as FieldComposer → TCOM
- Fixes latent gap in MP3 writing, enables WAV reuse
This commit is contained in:
2026-03-19 08:42:53 -04:00
parent d789c0b68e
commit 8f4c4a0c2b
+6
View File
@@ -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.