1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-27 08:33:21 +00:00

Ignore duplicates when using history to identify an existing downloaditem.

This commit is contained in:
Taloth Saldono 2015-08-11 20:52:39 +02:00
parent 648a16c1bb
commit 5ea954695e

View file

@ -78,7 +78,7 @@ public TrackedDownload TrackDownload(DownloadClientDefinition downloadClient, Do
parsedEpisodeInfo = Parser.Parser.ParseTitle(firstHistoryItem.SourceTitle);
if (parsedEpisodeInfo != null)
{
trackedDownload.RemoteEpisode = _parsingService.Map(parsedEpisodeInfo, firstHistoryItem.SeriesId, historyItems.Select(h => h.EpisodeId));
trackedDownload.RemoteEpisode = _parsingService.Map(parsedEpisodeInfo, firstHistoryItem.SeriesId, historyItems.Where(v => v.EventType == HistoryEventType.Grabbed).Select(h => h.EpisodeId).Distinct());
}
}
}