From fe7ca844dc1b742f47dd2832b90a885489b17b88 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 26 Oct 2017 22:09:35 +0100 Subject: [PATCH] We now show "Available" for tv shows that is fully available #1602 --- src/Ombi.Core/Rule/Rules/Search/PlexAvailabilityRule.cs | 5 +++++ src/Ombi/ClientApp/app/search/tvsearch.component.html | 2 -- src/Ombi/ClientApp/app/search/tvsearch.component.ts | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Ombi.Core/Rule/Rules/Search/PlexAvailabilityRule.cs b/src/Ombi.Core/Rule/Rules/Search/PlexAvailabilityRule.cs index 1b406cc93..f55316f2d 100644 --- a/src/Ombi.Core/Rule/Rules/Search/PlexAvailabilityRule.cs +++ b/src/Ombi.Core/Rule/Rules/Search/PlexAvailabilityRule.cs @@ -46,6 +46,11 @@ namespace Ombi.Core.Rule.Rules.Search } } } + + if (search.SeasonRequests.All(x => x.Episodes.All(e => e.Available))) + { + search.FullyAvailable = true; + } } } } diff --git a/src/Ombi/ClientApp/app/search/tvsearch.component.html b/src/Ombi/ClientApp/app/search/tvsearch.component.html index 8c45e1508..c57e32fa0 100644 --- a/src/Ombi/ClientApp/app/search/tvsearch.component.html +++ b/src/Ombi/ClientApp/app/search/tvsearch.component.html @@ -78,8 +78,6 @@
- -