1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-19 17:32:38 +01:00

Fixed: Dedupe titles to avoid similar search requests

Closes #10278
This commit is contained in:
Bogdan 2024-08-14 23:08:25 +03:00
parent 7d5236de21
commit 1e783bfe07

View File

@ -90,7 +90,7 @@ private TSpec Get<TSpec>(Movie movie, bool userInvokedSearch, bool interactiveSe
queryTranslations.Add(translation.Title); queryTranslations.Add(translation.Title);
} }
spec.SceneTitles = queryTranslations.Distinct().Where(t => t.IsNotNullOrWhiteSpace()).ToList(); spec.SceneTitles = queryTranslations.Where(t => t.IsNotNullOrWhiteSpace()).Distinct(StringComparer.InvariantCultureIgnoreCase).ToList();
return spec; return spec;
} }