From 7fccf590a815179cbb6512c1de33e9cff1962f7d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 17 Jun 2024 20:39:13 -0700 Subject: [PATCH] Fixed: Adding series with unknown items in queue --- .../Download/Aggregation/RemoteEpisodeAggregationService.cs | 5 +++++ src/NzbDrone.Core/Tv/SeriesScannedHandler.cs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Download/Aggregation/RemoteEpisodeAggregationService.cs b/src/NzbDrone.Core/Download/Aggregation/RemoteEpisodeAggregationService.cs index a2c2ae081..3ad998745 100644 --- a/src/NzbDrone.Core/Download/Aggregation/RemoteEpisodeAggregationService.cs +++ b/src/NzbDrone.Core/Download/Aggregation/RemoteEpisodeAggregationService.cs @@ -25,6 +25,11 @@ namespace NzbDrone.Core.Download.Aggregation public RemoteEpisode Augment(RemoteEpisode remoteEpisode) { + if (remoteEpisode == null) + { + return null; + } + foreach (var augmenter in _augmenters) { try diff --git a/src/NzbDrone.Core/Tv/SeriesScannedHandler.cs b/src/NzbDrone.Core/Tv/SeriesScannedHandler.cs index 60efcc6e5..e4d8ea90a 100644 --- a/src/NzbDrone.Core/Tv/SeriesScannedHandler.cs +++ b/src/NzbDrone.Core/Tv/SeriesScannedHandler.cs @@ -58,12 +58,12 @@ namespace NzbDrone.Core.Tv } else { - if (series.AddOptions.SearchForMissingEpisodes) + if (addOptions.SearchForMissingEpisodes) { _commandQueueManager.Push(new MissingEpisodeSearchCommand(series.Id)); } - if (series.AddOptions.SearchForCutoffUnmetEpisodes) + if (addOptions.SearchForCutoffUnmetEpisodes) { _commandQueueManager.Push(new CutoffUnmetEpisodeSearchCommand(series.Id)); }