From fd38f6524e840364d245996f1d57561fc553de2f Mon Sep 17 00:00:00 2001 From: hanafizaki <168611060+hanafizaki@users.noreply.github.com> Date: Sun, 30 Jun 2024 12:41:41 +0800 Subject: [PATCH] Update main.go ADD ITUNESALBUMID METADATA --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index b974136..5952088 100644 --- a/main.go +++ b/main.go @@ -734,6 +734,11 @@ func writeM4a(w *mp4.Writer, info *SongInfo, meta *AutoGenerated, data []byte, t return err } + err = addExtendedMeta("ITUNESALBUMID", meta.Data[0].ID) + if err != nil { + return err + } + err = addMeta(mp4.BoxType{'\251', 'w', 'r', 't'}, meta.Data[0].Relationships.Tracks.Data[index].Attributes.ComposerName) if err != nil { return err