mirror of
https://github.com/Sonarr/Sonarr
synced 2025-12-29 11:48:29 +01:00
Fixed: Reprocessing items that were previously blocked during importing
This commit is contained in:
parent
ea4fe392a0
commit
bce848facf
2 changed files with 3 additions and 3 deletions
|
|
@ -73,8 +73,8 @@ public void MarkAsFailed(string downloadId, bool skipRedownload = false)
|
|||
|
||||
public void Check(TrackedDownload trackedDownload)
|
||||
{
|
||||
// Only process tracked downloads that are still downloading
|
||||
if (trackedDownload.State != TrackedDownloadState.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 && trackedDownload.State != TrackedDownloadState.ImportBlocked)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ private TrackedDownload ProcessClientItem(IDownloadClient downloadClient, Downlo
|
|||
_trackedDownloadService.TrackDownload((DownloadClientDefinition)downloadClient.Definition,
|
||||
downloadItem);
|
||||
|
||||
if (trackedDownload != null && trackedDownload.State == TrackedDownloadState.Downloading)
|
||||
if (trackedDownload is { State: TrackedDownloadState.Downloading or TrackedDownloadState.ImportBlocked })
|
||||
{
|
||||
_failedDownloadService.Check(trackedDownload);
|
||||
_completedDownloadService.Check(trackedDownload);
|
||||
|
|
|
|||
Loading…
Reference in a new issue