mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Fixed broken build
This commit is contained in:
parent
5041653c9a
commit
767a045864
2 changed files with 10 additions and 4 deletions
|
@ -590,10 +590,16 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
providerId = showId.ToString();
|
||||
}
|
||||
// TODO: If it's an episode request, check if the episode exists
|
||||
if (Checker.IsTvShowAvailable(shows.ToArray(), showInfo.name, showInfo.premiered?.Substring(0, 4), providerId))
|
||||
if (episodeRequest)
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel { Result = false, Message = $"{fullShowName} {Resources.UI.Search_AlreadyInPlex}" });
|
||||
// TODO: If it's an episode request, check if the episode exists
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Checker.IsTvShowAvailable(shows.ToArray(), showInfo.name, showInfo.premiered?.Substring(0, 4), providerId))
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel { Result = false, Message = $"{fullShowName} {Resources.UI.Search_AlreadyInPlex}" });
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue