Do not override <year> if <releasedate> is set (#12120)
This commit is contained in:
parent
f2a5ccf102
commit
bf53f1ae38
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user