mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix trackers with non alphanumerics in the name not resolving
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user