mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-02 13:43:22 +01:00
Merge 3651bba772 into d8f79c0189
This commit is contained in:
commit
86bb7ecefb
2 changed files with 3 additions and 2 deletions
|
|
@ -381,6 +381,7 @@ public void Write(string path)
|
|||
var flactag = (TagLib.Ogg.XiphComment)file.GetTag(TagLib.TagTypes.Xiph);
|
||||
|
||||
flactag.SetField("DATE", Date.HasValue ? Date.Value.ToString("yyyy-MM-dd") : null);
|
||||
flactag.SetField("YEAR", Date.HasValue ? Date.Value.Year.ToString() : null);
|
||||
flactag.SetField("ORIGINALDATE", OriginalReleaseDate.HasValue ? OriginalReleaseDate.Value.ToString("yyyy-MM-dd") : null);
|
||||
flactag.SetField("ORIGINALYEAR", OriginalReleaseDate.HasValue ? OriginalReleaseDate.Value.Year.ToString() : null);
|
||||
flactag.SetField("TRACKTOTAL", TrackCount);
|
||||
|
|
|
|||
|
|
@ -146,8 +146,8 @@ public AudioTag GetTrackMetadata(TrackFile trackfile)
|
|||
|
||||
// We may have omitted media so index in the list isn't the same as medium number
|
||||
Media = release.Media.SingleOrDefault(x => x.Number == track.MediumNumber)?.Format,
|
||||
Date = release.ReleaseDate,
|
||||
Year = (uint)(album.ReleaseDate?.Year ?? 0),
|
||||
Date = release.ReleaseDate ?? album.ReleaseDate,
|
||||
Year = (uint)(album.ReleaseDate?.Year ?? release.ReleaseDate?.Year ?? 0),
|
||||
OriginalReleaseDate = album.ReleaseDate,
|
||||
OriginalYear = (uint)(album.ReleaseDate?.Year ?? 0),
|
||||
Publisher = release.Label.FirstOrDefault(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue