Compare commits

..

4 Commits

Author SHA1 Message Date
zhaarey ab9f035019
Merge pull request #24 from hanafizaki/patch-3 4 months ago
zhaarey c56369009a
Merge pull request #22 from hanafizaki/patch-1 4 months ago
hanafizaki 4c402016fe
Update main.go 4 months ago
hanafizaki fd38f6524e
Update main.go 4 months ago
  1. 10
      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
@ -749,6 +754,11 @@ func writeM4a(w *mp4.Writer, info *SongInfo, meta *AutoGenerated, data []byte, t
return err
}
err = addExtendedMeta("RELEASETIME", meta.Data[0].Relationships.Tracks.Data[index].Attributes.ReleaseDate)
if err != nil {
return err
}
cnID, err := strconv.ParseUint(meta.Data[0].Relationships.Tracks.Data[index].ID, 10, 32)
if err != nil {
return err

Loading…
Cancel
Save