Skip to content

Commit 8621ecf

Browse files
committed
Fixed: Some manually imported episodes not being marked as imported and remove from queue
Closes Sonarr#4803
1 parent 52d8f87 commit 8621ecf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/NzbDrone.Core/MediaFiles/EpisodeImport/Aggregation/Aggregators/AggregateEpisodes.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@ private List<Episode> GetEpisodes(LocalEpisode localEpisode)
7878

7979
if (episodes.Empty() && bestEpisodeInfoForEpisodes.IsPossibleSpecialEpisode)
8080
{
81-
var parsedEpisodeInfo = GetSpecialEpisodeInfo(localEpisode, bestEpisodeInfoForEpisodes);
81+
var parsedSpecialEpisodeInfo = GetSpecialEpisodeInfo(localEpisode, bestEpisodeInfoForEpisodes);
8282

83-
episodes = _parsingService.GetEpisodes(parsedEpisodeInfo, localEpisode.Series, localEpisode.SceneSource);
83+
if (parsedSpecialEpisodeInfo != null)
84+
{
85+
episodes = _parsingService.GetEpisodes(parsedSpecialEpisodeInfo, localEpisode.Series, localEpisode.SceneSource);
86+
}
8487
}
8588

8689
return episodes;

0 commit comments

Comments
 (0)