From 52fbdeaa53790f657553e9282aa183ba62c1010e Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 8 Oct 2017 01:00:54 -0400 Subject: [PATCH] Fixed: Error when processing manual import decisions --- .../TrackImport/Manual/ManualImportService.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MediaFiles/TrackImport/Manual/ManualImportService.cs b/src/NzbDrone.Core/MediaFiles/TrackImport/Manual/ManualImportService.cs index 0545bfa82..87a8ba449 100644 --- a/src/NzbDrone.Core/MediaFiles/TrackImport/Manual/ManualImportService.cs +++ b/src/NzbDrone.Core/MediaFiles/TrackImport/Manual/ManualImportService.cs @@ -156,7 +156,17 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Manual var importDecisions = _importDecisionMaker.GetImportDecisions(new List { file }, artist, null); - return importDecisions.Any() ? MapItem(importDecisions.First(), folder, downloadId) : null; + return importDecisions.Any() ? MapItem(importDecisions.First(), folder, downloadId) : new ManualImportItem + { + DownloadId = downloadId, + Path = file, + RelativePath = folder.GetRelativePath(file), + Name = Path.GetFileNameWithoutExtension(file), + Rejections = new List + { + new Rejection("Unable to process file") + } + }; } private bool SceneSource(Artist artist, string folder)