Do not override <year> if <releasedate> is set (#12120)

This commit is contained in:
Tim Eisele 2024-06-18 16:16:21 +02:00 committed by GitHub
parent f2a5ccf102
commit bf53f1ae38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -519,7 +519,9 @@ namespace MediaBrowser.XbmcMetadata.Parsers
if (reader.TryReadDateTimeExact(nfoConfiguration.ReleaseDateFormat, out var releaseDate))
{
item.PremiereDate = releaseDate;
item.ProductionYear = releaseDate.Year;
// Production year can already be set by the year tag
item.ProductionYear ??= releaseDate.Year;
}
break;