From ded3f59d2f6535e47cfaa33dab248fdb155843a4 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 26 Nov 2021 19:41:38 -0800 Subject: [PATCH] Fixed: Don't attempt to import downloads that cannot be parsed Closes #4758 --- src/NzbDrone.Core/Download/CompletedDownloadService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/Download/CompletedDownloadService.cs b/src/NzbDrone.Core/Download/CompletedDownloadService.cs index 6d83b04d6..c340d26a1 100644 --- a/src/NzbDrone.Core/Download/CompletedDownloadService.cs +++ b/src/NzbDrone.Core/Download/CompletedDownloadService.cs @@ -110,6 +110,12 @@ namespace NzbDrone.Core.Download return; } + if (trackedDownload.RemoteEpisode == null) + { + trackedDownload.Warn("Unable to parse download, automatic import is not possible."); + return; + } + trackedDownload.State = TrackedDownloadState.Importing; var outputPath = trackedDownload.ImportItem.OutputPath.FullPath;