mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Added the subscribe button to the search page if we have an existing request.
This commit is contained in:
parent
e8249fa1a8
commit
a82b011ae3
8 changed files with 60 additions and 6 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue