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)
|
public IIndexer GetIndexer(string name)
|
||||||
{
|
{
|
||||||
var indexer = indexers.Values.Where(i => string.Equals(StringUtil.StripNonAlphaNumeric(i.DisplayName), name, StringComparison.InvariantCultureIgnoreCase)).FirstOrDefault();
|
if (indexers.ContainsKey(name))
|
||||||
if (indexer != null)
|
|
||||||
{
|
{
|
||||||
return indexer;
|
return indexers[name];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue