This should fix #466

pull/470/head
tidusjar 8 years ago
parent a7d5378426
commit 3b133ffbf5

@ -156,10 +156,10 @@ namespace PlexRequests.UI.Helpers
foreach (var r in model.Episodes)
{
// Match the episode and season number.
// Also we need to make sure that the episode is not monitored already, otherwise there is no point.
// If the episode is monitored we might not be searching for it.
var episode =
episodes.FirstOrDefault(
x => x.episodeNumber == r.EpisodeNumber && x.seasonNumber == r.SeasonNumber && !x.monitored);
x => x.episodeNumber == r.EpisodeNumber && x.seasonNumber == r.SeasonNumber);
if (episode == null)
{
continue;

@ -992,7 +992,7 @@ namespace PlexRequests.UI.Modules
ep.number == episodesModel.EpisodeNumber && ep.season == episodesModel.SeasonNumber) ?? false;
var alreadyInPlex = plexCache.Any(x => x.EpisodeNumber == ep.number && x.SeasonNumber == ep.season);
var inSonarr = sonarrEpisodes.Any(x => x.seasonNumber == ep.season && x.episodeNumber == ep.number && x.monitored);
var inSonarr = sonarrEpisodes.Any(x => x.seasonNumber == ep.season && x.episodeNumber == ep.number && x.hasFile);
model.Add(new EpisodeListViewModel
{

Loading…
Cancel
Save