mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
Fixed: Updated Add Series sort logic to better handle Country/Year variants.
This commit is contained in:
@@ -82,11 +82,11 @@ namespace NzbDrone.Core.MetadataSource
|
||||
{
|
||||
try
|
||||
{
|
||||
var series = SearchTrakt(title.Trim());
|
||||
var series = SearchTrakt(title.Trim()).Select(MapSeries).ToList();
|
||||
|
||||
return series.Select(MapSeries)
|
||||
.OrderBy(s => title.LevenshteinDistanceClean(s.Title))
|
||||
.ToList();
|
||||
series.Sort(new TraktSearchSeriesComparer(title));
|
||||
|
||||
return series;
|
||||
}
|
||||
catch (HttpException)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user