mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
#865 !wip fixed a bug where we could request duplicate episodes
This commit is contained in:
parent
5f978abf86
commit
d0a7ef9223
2 changed files with 10 additions and 2 deletions
|
@ -108,7 +108,16 @@ namespace Ombi.Core.Engine
|
|||
|
||||
// Remove the ID since this is a new child
|
||||
tvBuilder.ChildRequest.Id = 0;
|
||||
return await AddExistingRequest(tvBuilder.ChildRequest, existingRequest);
|
||||
if (!tvBuilder.ChildRequest.SeasonRequests.Any())
|
||||
{
|
||||
// Looks like we have removed them all! They were all duplicates...
|
||||
return new RequestEngineResult
|
||||
{
|
||||
RequestAdded = false,
|
||||
ErrorMessage = "They have already been requestsed"
|
||||
};
|
||||
}
|
||||
return await AddExistingRequest(tvBuilder.ChildRequest, existingRequest);
|
||||
}
|
||||
|
||||
// This is a new request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue