mirror of
https://github.com/Sonarr/Sonarr
synced 2026-04-16 10:11:25 +02:00
Prevent an edge case where a download is not marked as complete
This commit is contained in:
parent
be3b3df903
commit
d6dd13a6be
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ public bool IsImported(TrackedDownload trackedDownload, List<EpisodeHistory> his
|
|||
|
||||
var allEpisodesImportedInHistory = trackedDownload.RemoteEpisode.Episodes.All(e =>
|
||||
{
|
||||
var lastHistoryItem = historyItems.FirstOrDefault(h => h.EpisodeId == e.Id);
|
||||
var lastHistoryItem = historyItems.FirstOrDefault(h => h.DownloadId == trackedDownload.DownloadItem.DownloadId && h.EpisodeId == e.Id);
|
||||
|
||||
if (lastHistoryItem == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue