1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-22 07:43:13 +00:00

indexers: dedupe duplicated results (#15748)

This commit is contained in:
Vance 2024-12-12 01:42:25 +08:00 committed by GitHub
parent c785e745a2
commit 30d90741db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);