Fix trackers with non alphanumerics in the name not resolving

This commit is contained in:
KZ 2015-07-22 23:06:46 +01:00
parent c4d653bc2e
commit 7f53c52767
1 changed files with 2 additions and 3 deletions

View File

@ -53,10 +53,9 @@ namespace Jackett.Services
public IIndexer GetIndexer(string name)
{
var indexer = indexers.Values.Where(i => string.Equals(StringUtil.StripNonAlphaNumeric(i.DisplayName), name, StringComparison.InvariantCultureIgnoreCase)).FirstOrDefault();
if (indexer != null)
if (indexers.ContainsKey(name))
{
return indexer;
return indexers[name];
}
else
{