mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-09 05:06:09 +02:00
Fixed: Use Album Date if Release Date is null.
This commit is contained in:
parent
007a1f4161
commit
aae68e7175
1 changed files with 2 additions and 2 deletions
|
|
@ -115,8 +115,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,
|
||||
Date = release.ReleaseDate ?? album.ReleaseDate,
|
||||
Year = (uint)(album.ReleaseDate?.Year ?? release.ReleaseDate?.Year ?? 0),
|
||||
OriginalReleaseDate = album.ReleaseDate,
|
||||
OriginalYear = (uint)album.ReleaseDate?.Year,
|
||||
Publisher = release.Label.FirstOrDefault(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue