mirror of https://github.com/Jackett/Jackett
Fix trackers with non alphanumerics in the name not resolving
This commit is contained in:
parent
c4d653bc2e
commit
7f53c52767
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue