mirror of
https://github.com/Jackett/Jackett
synced 2024-12-21 23:33:18 +00:00
indexers: dedupe duplicated results (#15748)
This commit is contained in:
parent
c785e745a2
commit
30d90741db
1 changed files with 4 additions and 0 deletions
|
@ -381,6 +381,10 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
results = FilterResults(queryCopy, results).ToList();
|
||||
results = FixResults(queryCopy, results).ToList();
|
||||
|
||||
// De-dupe releases by Guid so duplicate results aren't returned.
|
||||
results = results.GroupBy(r => r.Guid).Select(g => g.First()).ToList();
|
||||
|
||||
cacheService.CacheResults(this, queryCopy, results.ToList());
|
||||
errorCount = 0;
|
||||
expireAt = DateTime.Now.Add(HealthyStatusValidity);
|
||||
|
|
Loading…
Reference in a new issue