1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-29 23:12:39 +01:00

Fixed: Dedupe releases for single daily and anime episode searches

Closes #7288
This commit is contained in:
Bogdan 2024-10-27 00:15:27 +03:00 committed by GitHub
parent 07374de747
commit fe40d83aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -339,7 +339,9 @@ namespace NzbDrone.Core.IndexerSearch
var searchSpec = Get<DailyEpisodeSearchCriteria>(series, new List<Episode> { episode }, monitoredOnly, userInvokedSearch, interactiveSearch);
searchSpec.AirDate = airDate;
return await Dispatch(indexer => indexer.Fetch(searchSpec), searchSpec);
var downloadDecisions = await Dispatch(indexer => indexer.Fetch(searchSpec), searchSpec);
return DeDupeDecisions(downloadDecisions);
}
private async Task<List<DownloadDecision>> SearchAnime(Series series, Episode episode, bool monitoredOnly, bool userInvokedSearch, bool interactiveSearch, bool isSeasonSearch = false)
@ -352,7 +354,9 @@ namespace NzbDrone.Core.IndexerSearch
searchSpec.EpisodeNumber = episode.SceneEpisodeNumber ?? episode.EpisodeNumber;
searchSpec.AbsoluteEpisodeNumber = episode.SceneAbsoluteEpisodeNumber ?? episode.AbsoluteEpisodeNumber ?? 0;
return await Dispatch(indexer => indexer.Fetch(searchSpec), searchSpec);
var downloadDecisions = await Dispatch(indexer => indexer.Fetch(searchSpec), searchSpec);
return DeDupeDecisions(downloadDecisions);
}
private async Task<List<DownloadDecision>> SearchSpecial(Series series, List<Episode> episodes, bool monitoredOnly, bool userInvokedSearch, bool interactiveSearch)