mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 03:28:28 -07:00
Added a PartlyAvailable flag for tv shows
This commit is contained in:
parent
e1ea188109
commit
106a46dea5
3 changed files with 7 additions and 0 deletions
|
@ -55,6 +55,8 @@ namespace Ombi.Core.Models.Search
|
|||
/// This is where we have EVERY Episode for that series
|
||||
/// </summary>
|
||||
public bool FullyAvailable { get; set; }
|
||||
// We only have some episodes
|
||||
public bool PartlyAvailable { get; set; }
|
||||
|
||||
public override RequestType Type => RequestType.TvShow;
|
||||
}
|
||||
|
|
|
@ -87,6 +87,10 @@ namespace Ombi.Core.Rule.Rules.Search
|
|||
{
|
||||
request.FullyAvailable = true;
|
||||
}
|
||||
if (request.SeasonRequests.Any() && request.SeasonRequests.All(x => x.Episodes.Any(e => e.Approved)))
|
||||
{
|
||||
request.PartlyAvailable = true;
|
||||
}
|
||||
|
||||
|
||||
return Task.FromResult(Success());
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
|
||||
|
||||
<ng-template [ngIf]="node.data.available"><span class="label label-success">Available</span></ng-template>
|
||||
<ng-template [ngIf]="node.data.partlyAvailable"><span class="label label-warning">Partially Available</span></ng-template>
|
||||
|
||||
|
||||
<a *ngIf="node.data.homepage" href="{{node.data.homepage}}" target="_blank"><span class="label label-info">HomePage</span></a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue