From 1498f4e361c02256321fa38b5952549f3643c83c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 21 Apr 2020 09:03:01 -0700 Subject: [PATCH] Revert: Prevent an edge case where a download is not marked as complete --- .../Download/TrackedDownloads/TrackedDownloadAlreadyImported.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadAlreadyImported.cs b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadAlreadyImported.cs index 0380ba879..c5bc47107 100644 --- a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadAlreadyImported.cs +++ b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadAlreadyImported.cs @@ -21,7 +21,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads var allEpisodesImportedInHistory = trackedDownload.RemoteEpisode.Episodes.All(e => { - var lastHistoryItem = historyItems.FirstOrDefault(h => h.DownloadId == trackedDownload.DownloadItem.DownloadId && h.EpisodeId == e.Id); + var lastHistoryItem = historyItems.FirstOrDefault(h => h.EpisodeId == e.Id); if (lastHistoryItem == null) {