Update main.go

This commit is contained in:
zhaarey 2024-05-06 21:41:09 +08:00
parent eca24c17c6
commit a08234a6ec

View File

@ -684,7 +684,7 @@ func writeM4a(w *mp4.Writer, info *SongInfo, meta *AutoGenerated, data []byte, t
return err return err
} }
err = addMeta(mp4.BoxType{'s', 'o', 'a', 'l'}, meta.Data[0].Attributes.Name) err = addMeta(mp4.BoxType{'s', 'o', 'a', 'l'}, meta.Data[0].Relationships.Tracks.Data[index].Attributes.AlbumName)
if err != nil { if err != nil {
return err return err
} }