returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{movieInfo.Title} is already in Plex!" });
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{fullMovieName} is already in Plex!"});
}
}
catch(ApplicationSettingsException)
{
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"We could not check if {movieInfo.Title} is in Plex, are you sure it's correctly setup?" });
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"We could not check if {fullMovieName} is in Plex, are you sure it's correctly setup?" });
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{fullShowName} has already been requested!"});
}
try
{
if(CheckIfTitleExistsInPlex(showInfo.name,showInfo.premiered?.Substring(0,4)))// Take only the year Format = 2014-01-01
{
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{showInfo.name} is already in Plex!"});
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{fullShowName} is already in Plex!" });
}
}
catch(ApplicationSettingsException)
{
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"We could not check if {showInfo.name} is in Plex, are you sure it's correctly setup?" });
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"We could not check if {fullShowName} is in Plex, are you sure it's correctly setup?" });
returnResponse.AsJson(newJsonResponseModel{Result=true,Message=$"{fullShowName} was successfully added!"});
}
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=result?.message!=null?"<b>Message From SickRage: </b>"+result.message:"Something went wrong adding the movie to SickRage! Please check your settings."});