From a0ecb19e32c2b9190b16ef618cd978fff661696e Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Fri, 13 Jan 2017 19:02:59 +0100 Subject: [PATCH] DownloadMonitoringService should now not care about deleted movies. Fixes #131. --- src/NzbDrone.Core/Download/CompletedDownloadService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Download/CompletedDownloadService.cs b/src/NzbDrone.Core/Download/CompletedDownloadService.cs index 2a68c80d2..38f354a48 100644 --- a/src/NzbDrone.Core/Download/CompletedDownloadService.cs +++ b/src/NzbDrone.Core/Download/CompletedDownloadService.cs @@ -132,7 +132,7 @@ public void Process(TrackedDownload trackedDownload, bool ignoreWarnings = false private void Import(TrackedDownload trackedDownload) { var outputPath = trackedDownload.DownloadItem.OutputPath.FullPath; - if (trackedDownload.RemoteMovie.Movie != null) + if (trackedDownload.RemoteMovie != null && trackedDownload.RemoteMovie.Movie != null) { var importResults = _downloadedMovieImportService.ProcessPath(outputPath, ImportMode.Auto, trackedDownload.RemoteMovie.Movie, trackedDownload.DownloadItem); @@ -159,7 +159,7 @@ private void Import(TrackedDownload trackedDownload) trackedDownload.Warn(statusMessages); } } - else if (trackedDownload.RemoteEpisode.Series != null) + else if (trackedDownload.RemoteEpisode != null && trackedDownload.RemoteEpisode.Series != null) { var importResults = _downloadedEpisodesImportService.ProcessPath(outputPath, ImportMode.Auto, trackedDownload.RemoteEpisode.Series, trackedDownload.DownloadItem);