Ignore duplicates when using history to identify an existing downloaditem.

pull/4/head
Taloth Saldono 10 years ago
parent 648a16c1bb
commit 5ea954695e

@ -78,7 +78,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
parsedEpisodeInfo = Parser.Parser.ParseTitle(firstHistoryItem.SourceTitle); parsedEpisodeInfo = Parser.Parser.ParseTitle(firstHistoryItem.SourceTitle);
if (parsedEpisodeInfo != null) 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());
} }
} }
} }

Loading…
Cancel
Save