Added the subscribe button to the search page if we have an existing request.

This commit is contained in:
Jamie Rees 2018-05-30 14:25:17 +01:00
parent e8249fa1a8
commit a82b011ae3
8 changed files with 60 additions and 6 deletions

View file

@ -29,6 +29,7 @@ namespace Ombi.Core.Rule.Rules.Search
{
obj.Requested = true;
obj.RequestId = movieRequests.Id;
obj.Approved = movieRequests.Approved;
obj.Available = movieRequests.Available;
@ -67,6 +68,7 @@ namespace Ombi.Core.Rule.Rules.Search
existingRequestChildRequest.SeasonRequests.FirstOrDefault(x => x.SeasonNumber == season.SeasonNumber);
if (existingSeason == null) continue;
foreach (var ep in existingSeason.Episodes)
{
// Find the episode from what we are searching
@ -92,7 +94,6 @@ namespace Ombi.Core.Rule.Rules.Search
request.PartlyAvailable = true;
}
return Task.FromResult(Success());
}
}