From 66bc5928e7a88d6075d71530fa5b76345b4665ab Mon Sep 17 00:00:00 2001 From: Wesley King Date: Sat, 15 Oct 2022 19:46:43 -0400 Subject: [PATCH] Partially Available prevents further TV requests (#4768) --- .../media-details/components/tv/tv-details.component.html | 6 +++--- .../app/media-details/components/tv/tv-details.component.ts | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html b/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html index b893af45c..8d270417d 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html @@ -57,11 +57,11 @@

{{ 'MediaDetails.NotEnoughInfo' | translate }}

- - diff --git a/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.ts b/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.ts index 473417d53..edd531a0b 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.ts +++ b/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.ts @@ -126,9 +126,10 @@ export class TvDetailsComponent implements OnInit { } } - public allEpisodesRequested(): boolean { - return this.tv.seasonRequests.every(e => e.episodes.every(x => x.approved || x.requested)); + public allEpisodesRequestedOrAvailable(): boolean { + return this.tv.seasonRequests.every(e => e.episodes.every(x => x.available || x.approved || x.requested)); } + private checkPoster() { if (this.tv.images.original == null) { this.tv.images.original = "../../../images/default_movie_poster.png";