diff --git a/main.go b/main.go index 7074d59..8509bb1 100644 --- a/main.go +++ b/main.go @@ -823,10 +823,6 @@ func writeMP4Tags(trackPath string, meta *structs.AutoGenerated, trackNum, track if err != nil { return err } - releaseYear, err := strconv.ParseUint(meta.Data[0].Attributes.ReleaseDate[:4], 10, 32) - if err != nil { - return err - } t := &mp4tag.MP4Tags{ Title: meta.Data[0].Relationships.Tracks.Data[index].Attributes.Name, @@ -836,6 +832,7 @@ func writeMP4Tags(trackPath string, meta *structs.AutoGenerated, trackNum, track Artist: meta.Data[0].Relationships.Tracks.Data[index].Attributes.ArtistName, ArtistSort: meta.Data[0].Relationships.Tracks.Data[index].Attributes.ArtistName, Custom: map[string]string{ + "DATE": meta.Data[0].Attributes.ReleaseDate, "PERFORMER": meta.Data[0].Relationships.Tracks.Data[index].Attributes.ArtistName, "RELEASETIME": meta.Data[0].Relationships.Tracks.Data[index].Attributes.ReleaseDate, "ISRC": meta.Data[0].Relationships.Tracks.Data[index].Attributes.Isrc, @@ -850,7 +847,6 @@ func writeMP4Tags(trackPath string, meta *structs.AutoGenerated, trackNum, track Copyright: meta.Data[0].Attributes.Copyright, Publisher: meta.Data[0].Attributes.RecordLabel, ItunesArtistID: int32(artistID), - Year: int32(releaseYear), } if strings.Contains(meta.Data[0].ID, "pl.") && !Config.UseSongInfoForPlaylist {