1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

Fixed: Duplicate scene titles causes unnecessary indexer queries.

fixes #2068
This commit is contained in:
Indrek Ardel
2017-07-26 17:14:10 +03:00
committed by Taloth
parent 126b849c27
commit 5c4dc9ccb1
2 changed files with 7 additions and 4 deletions
@@ -19,7 +19,7 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
public virtual bool MonitoredEpisodesOnly { get; set; }
public virtual bool UserInvokedSearch { get; set; }
public List<string> QueryTitles => SceneTitles.Select(GetQueryTitle).ToList();
public List<string> QueryTitles => SceneTitles.Select(GetQueryTitle).Distinct().ToList();
public static string GetQueryTitle(string title)
{
@@ -37,4 +37,4 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
return cleanTitle.Trim('+', ' ');
}
}
}
}