From 8621ecfec1e39fce52e18494bfcbb1a1b09cb50c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 19 Dec 2021 09:42:08 -0800 Subject: [PATCH] Fixed: Some manually imported episodes not being marked as imported and remove from queue Closes #4803 --- .../Aggregation/Aggregators/AggregateEpisodes.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeImport/Aggregation/Aggregators/AggregateEpisodes.cs b/src/NzbDrone.Core/MediaFiles/EpisodeImport/Aggregation/Aggregators/AggregateEpisodes.cs index 6f92354e2..f243537e5 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeImport/Aggregation/Aggregators/AggregateEpisodes.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeImport/Aggregation/Aggregators/AggregateEpisodes.cs @@ -78,9 +78,12 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation.Aggregators if (episodes.Empty() && bestEpisodeInfoForEpisodes.IsPossibleSpecialEpisode) { - var parsedEpisodeInfo = GetSpecialEpisodeInfo(localEpisode, bestEpisodeInfoForEpisodes); + var parsedSpecialEpisodeInfo = GetSpecialEpisodeInfo(localEpisode, bestEpisodeInfoForEpisodes); - episodes = _parsingService.GetEpisodes(parsedEpisodeInfo, localEpisode.Series, localEpisode.SceneSource); + if (parsedSpecialEpisodeInfo != null) + { + episodes = _parsingService.GetEpisodes(parsedSpecialEpisodeInfo, localEpisode.Series, localEpisode.SceneSource); + } } return episodes;