Fixed: Reprocessing items that were previously blocked during importing

(cherry picked from commit bce848facf8aeaeac6a1d59c92941d00589034a4)
pull/10128/head
Mark McDowall 7 months ago committed by Bogdan
parent 29449e83f9
commit a607f167f4

@ -73,8 +73,8 @@ namespace NzbDrone.Core.Download
public void Check(TrackedDownload trackedDownload) public void Check(TrackedDownload trackedDownload)
{ {
// Only process tracked downloads that are still downloading // Only process tracked downloads that are still downloading or import is blocked (if they fail after attempting to be processed)
if (trackedDownload.State != TrackedDownloadState.Downloading) if (trackedDownload.State != TrackedDownloadState.Downloading && trackedDownload.State != TrackedDownloadState.ImportBlocked)
{ {
return; return;
} }

@ -121,7 +121,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
_trackedDownloadService.TrackDownload((DownloadClientDefinition)downloadClient.Definition, _trackedDownloadService.TrackDownload((DownloadClientDefinition)downloadClient.Definition,
downloadItem); downloadItem);
if (trackedDownload != null && trackedDownload.State == TrackedDownloadState.Downloading) if (trackedDownload is { State: TrackedDownloadState.Downloading or TrackedDownloadState.ImportBlocked })
{ {
_failedDownloadService.Check(trackedDownload); _failedDownloadService.Check(trackedDownload);
_completedDownloadService.Check(trackedDownload); _completedDownloadService.Check(trackedDownload);

Loading…
Cancel
Save