mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 03:50:08 -07:00
Fixed unit tests
This commit is contained in:
parent
5678f43f41
commit
b9f5c06b7c
4 changed files with 18 additions and 6 deletions
|
@ -17,7 +17,7 @@ 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))
|
||||
{
|
||||
{
|
||||
season.SeasonAvailable = true;
|
||||
}
|
||||
}
|
||||
|
@ -28,8 +28,9 @@ namespace Ombi.Core.Rule.Rules.Search
|
|||
else if (search.SeasonRequests.Any(x => x.Episodes.Any(e => e.Available)))
|
||||
{
|
||||
search.PartlyAvailable = true;
|
||||
}
|
||||
else
|
||||
}
|
||||
|
||||
if (!search.FullyAvailable)
|
||||
{
|
||||
var airedButNotAvailable = search.SeasonRequests.Any(x =>
|
||||
x.Episodes.Any(c => !c.Available && c.AirDate <= DateTime.Now.Date && c.AirDate != DateTime.MinValue));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue