Update main.go

ADD ITUNESALBUMID METADATA
pull/22/head
hanafizaki 4 months ago committed by GitHub
parent 726a21fb53
commit fd38f6524e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      main.go

@ -734,6 +734,11 @@ func writeM4a(w *mp4.Writer, info *SongInfo, meta *AutoGenerated, data []byte, t
return err 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) err = addMeta(mp4.BoxType{'\251', 'w', 'r', 't'}, meta.Data[0].Relationships.Tracks.Data[index].Attributes.ComposerName)
if err != nil { if err != nil {
return err return err

Loading…
Cancel
Save