mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Resolved #7
This commit is contained in:
parent
15d1b9f525
commit
67ecbbf178
7 changed files with 112 additions and 16 deletions
|
@ -189,10 +189,12 @@ namespace PlexRequests.UI.Modules
|
|||
Log.Trace("Getting movie info from TheMovieDb");
|
||||
Log.Trace(movieInfo.DumpJson);
|
||||
|
||||
#if !DEBUG
|
||||
if (CheckIfTitleExistsInPlex(movieInfo.Title))
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel { Result = false, Message = $"{movieInfo.Title} is already in Plex!" });
|
||||
}
|
||||
#endif
|
||||
|
||||
var model = new RequestedModel
|
||||
{
|
||||
|
@ -263,10 +265,12 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
var showInfo = tvApi.GetInformation(showId, token).data;
|
||||
|
||||
#if !DEBUG
|
||||
if (CheckIfTitleExistsInPlex(showInfo.seriesName))
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel { Result = false, Message = $"{showInfo.seriesName} is already in Plex!" });
|
||||
}
|
||||
#endif
|
||||
|
||||
DateTime firstAir;
|
||||
DateTime.TryParse(showInfo.firstAired, out firstAir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue