1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-03-05 13:20:20 -05:00

Remove English limitation for aliases

This commit is contained in:
Mark McDowall
2026-02-21 12:16:56 -08:00
parent 2a5667e634
commit 6c329e8a6f

View File

@@ -62,7 +62,6 @@ namespace NzbDrone.Core.DataAugmentation.Scene
var names = mappings.Where(n => seasonNumbers.Contains(n.SeasonNumber ?? -1) ||
sceneSeasonNumbers.Contains(n.SceneSeasonNumber ?? -1) ||
((n.SeasonNumber ?? -1) == -1 && (n.SceneSeasonNumber ?? -1) == -1 && n.SceneOrigin != "tvdb"))
.Where(n => IsEnglish(n.SearchTerm))
.Select(n => n.SearchTerm)
.Distinct(StringComparer.InvariantCultureIgnoreCase)
.ToList();
@@ -274,11 +273,6 @@ namespace NzbDrone.Core.DataAugmentation.Scene
return normalCandidates;
}
private bool IsEnglish(string title)
{
return title.All(c => c <= 255);
}
public void Handle(SeriesRefreshStartingEvent message)
{
if (message.ManualTrigger && (_findByTvdbIdCache.IsExpired(TimeSpan.FromMinutes(1)) || !_updatedAfterStartup))