mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
This commit is contained in:
parent
5024178724
commit
b4bc51c862
6 changed files with 13 additions and 10 deletions
|
@ -557,7 +557,7 @@ namespace PlexRequests.UI.Modules
|
|||
var s = await sonarrSettings;
|
||||
if (!s.Enabled)
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel { Message = "This is currently only supported with Sonarr", Result = false });
|
||||
return Response.AsJson(new JsonResponseModel { Message = "This is currently only supported with Sonarr, Please enable Sonarr for this feature", Result = false });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -941,8 +941,8 @@ namespace PlexRequests.UI.Modules
|
|||
var enumerable = allResults as RequestedModel[] ?? allResults.ToArray();
|
||||
|
||||
var dbDbShow = enumerable.FirstOrDefault(x => x.Type == RequestType.TvShow && x.TvDbId == seriesId.ToString());
|
||||
var show = TvApi.ShowLookupByTheTvDbId(seriesId);
|
||||
var seasons = TvApi.EpisodeLookup(show.id);
|
||||
var show = await Task.Run(() => TvApi.ShowLookupByTheTvDbId(seriesId));
|
||||
var seasons = await Task.Run(() => TvApi.EpisodeLookup(show.id));
|
||||
|
||||
|
||||
foreach (var ep in seasons)
|
||||
|
@ -957,7 +957,8 @@ namespace PlexRequests.UI.Modules
|
|||
SeasonNumber = ep.season,
|
||||
EpisodeNumber = ep.number,
|
||||
Requested = requested ?? false,
|
||||
Name = ep.name
|
||||
Name = ep.name,
|
||||
EpisodeId = ep.id
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue