From 873823017cc56af316863f57de262f0b78606cef Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 23 Mar 2021 16:21:58 +0000 Subject: [PATCH] Fixed the issue where fully available TV shows were showing as partially available --- .../Rule/Rules/Search/AvailabilityRuleHelper.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Ombi.Core/Rule/Rules/Search/AvailabilityRuleHelper.cs b/src/Ombi.Core/Rule/Rules/Search/AvailabilityRuleHelper.cs index 9076cd232..ee1d94509 100644 --- a/src/Ombi.Core/Rule/Rules/Search/AvailabilityRuleHelper.cs +++ b/src/Ombi.Core/Rule/Rules/Search/AvailabilityRuleHelper.cs @@ -17,18 +17,18 @@ namespace Ombi.Core.Rule.Rules.Search { // If we have all the episodes for this season, then this season is available if (season.Episodes.All(x => x.Available)) - { + {yarn season.SeasonAvailable = true; } } - if(search.SeasonRequests.Any(x => x.Episodes.Any(e => e.Available))) - { - search.PartlyAvailable = true; - } if (search.SeasonRequests.All(x => x.Episodes.All(e => e.Available))) { search.FullyAvailable = true; } + else if (search.SeasonRequests.Any(x => x.Episodes.Any(e => e.Available))) + { + search.PartlyAvailable = true; + } else { var airedButNotAvailable = search.SeasonRequests.Any(x =>