1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Fixed: End year displayed on series details

Closes #6067
This commit is contained in:
Mark McDowall
2023-10-09 23:21:52 -07:00
parent df2e867528
commit 076aaba908
12 changed files with 86 additions and 5 deletions
@@ -245,6 +245,9 @@ namespace Sonarr.Api.V3.Series
private void LinkSeriesStatistics(SeriesResource resource, SeriesStatistics seriesStatistics)
{
// Only set last aired from statistics if it's missing from the series itself
resource.LastAired ??= seriesStatistics.LastAired;
resource.PreviousAiring = seriesStatistics.PreviousAiring;
resource.NextAiring = seriesStatistics.NextAiring;
resource.Statistics = seriesStatistics.ToResource(resource.Seasons);