mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Fixed the issue where fully available TV shows were showing as partially available
This commit is contained in:
parent
9109350f2e
commit
873823017c
1 changed files with 5 additions and 5 deletions
|
@ -17,17 +17,17 @@ namespace Ombi.Core.Rule.Rules.Search
|
||||||
{
|
{
|
||||||
// If we have all the episodes for this season, then this season is available
|
// If we have all the episodes for this season, then this season is available
|
||||||
if (season.Episodes.All(x => x.Available))
|
if (season.Episodes.All(x => x.Available))
|
||||||
{
|
{yarn
|
||||||
season.SeasonAvailable = true;
|
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)))
|
if (search.SeasonRequests.All(x => x.Episodes.All(e => e.Available)))
|
||||||
{
|
{
|
||||||
search.FullyAvailable = true;
|
search.FullyAvailable = true;
|
||||||
|
}
|
||||||
|
else if (search.SeasonRequests.Any(x => x.Episodes.Any(e => e.Available)))
|
||||||
|
{
|
||||||
|
search.PartlyAvailable = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue