Series/Details season status now shows the correct season status.
This commit is contained in:
parent
cc8f8bec06
commit
53c4641c07
|
@ -120,7 +120,7 @@ namespace NzbDrone.Web.Controllers
|
|||
foreach (var season in episodes.Select(s => s.SeasonNumber).Distinct())
|
||||
{
|
||||
var episodesInSeason = episodes.Where(e => e.SeasonNumber == season).ToList();
|
||||
var commonStatusList = episodes.Select(s => s.Status).Distinct().ToList();
|
||||
var commonStatusList = episodesInSeason.Select(s => s.Status).Distinct().ToList();
|
||||
var commonStatus = commonStatusList.Count > 1 ? "Missing" : commonStatusList.First().ToString();
|
||||
|
||||
seasons.Add(new SeasonModel
|
||||
|
|
Loading…
Reference in New Issue