1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Downloads with un-parsable releases stuck on import

This commit is contained in:
Qstick 2020-06-16 23:18:46 -04:00
parent 3c7f80612d
commit 40b5702ca6

View File

@ -110,6 +110,14 @@ public void Import(TrackedDownload trackedDownload)
trackedDownload.State = TrackedDownloadState.Importing; trackedDownload.State = TrackedDownloadState.Importing;
var outputPath = trackedDownload.DownloadItem.OutputPath.FullPath; var outputPath = trackedDownload.DownloadItem.OutputPath.FullPath;
if (trackedDownload.RemoteMovie == null)
{
trackedDownload.State = TrackedDownloadState.ImportPending;
trackedDownload.Warn("Unknown Movie", outputPath);
return;
}
var importResults = _downloadedMovieImportService.ProcessPath(outputPath, ImportMode.Auto, trackedDownload.RemoteMovie.Movie, trackedDownload.DownloadItem); var importResults = _downloadedMovieImportService.ProcessPath(outputPath, ImportMode.Auto, trackedDownload.RemoteMovie.Movie, trackedDownload.DownloadItem);
if (VerifyImport(trackedDownload, importResults)) if (VerifyImport(trackedDownload, importResults))