Fixed: Don't attempt to import downloads that cannot be parsed

Closes #4758
This commit is contained in:
Mark McDowall 2021-11-26 19:41:38 -08:00
parent 2601a68cd4
commit ded3f59d2f
1 changed files with 6 additions and 0 deletions

View File

@ -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;