mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 16:52:56 -07:00
Fixed broken build
This commit is contained in:
parent
5041653c9a
commit
767a045864
2 changed files with 10 additions and 4 deletions
|
@ -124,7 +124,7 @@ namespace PlexRequests.UI.Modules
|
||||||
if (sonarrSettings.Enabled)
|
if (sonarrSettings.Enabled)
|
||||||
{
|
{
|
||||||
Log.Trace("Sending to Sonarr");
|
Log.Trace("Sending to Sonarr");
|
||||||
var result = sender.SendToSonarr(sonarrSettings, request, qualityId);
|
var result = await sender.SendToSonarr(sonarrSettings, request, qualityId);
|
||||||
Log.Trace("Sonarr Result: ");
|
Log.Trace("Sonarr Result: ");
|
||||||
Log.Trace(result.DumpJson());
|
Log.Trace(result.DumpJson());
|
||||||
if (!string.IsNullOrEmpty(result.title))
|
if (!string.IsNullOrEmpty(result.title))
|
||||||
|
|
|
@ -590,12 +590,18 @@ namespace PlexRequests.UI.Modules
|
||||||
{
|
{
|
||||||
providerId = showId.ToString();
|
providerId = showId.ToString();
|
||||||
}
|
}
|
||||||
|
if (episodeRequest)
|
||||||
|
{
|
||||||
// TODO: If it's an episode request, check if the episode exists
|
// 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))
|
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}" });
|
return Response.AsJson(new JsonResponseModel { Result = false, Message = $"{fullShowName} {Resources.UI.Search_AlreadyInPlex}" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
return Response.AsJson(new JsonResponseModel { Result = false, Message = string.Format(Resources.UI.Search_CouldNotCheckPlex, fullShowName) });
|
return Response.AsJson(new JsonResponseModel { Result = false, Message = string.Format(Resources.UI.Search_CouldNotCheckPlex, fullShowName) });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue