indexers: set indexer details as properties (#14131)

This commit is contained in:
Bogdan
2023-03-09 16:06:12 +02:00
committed by GitHub
parent 7e8111f6cd
commit c7e9d4e72b
100 changed files with 1003 additions and 1002 deletions

View File

@@ -296,7 +296,7 @@ namespace Jackett.Common.Services
throw new Exception($"Unknown indexer: {name}");
}
public List<IIndexer> GetAllIndexers() => _indexers.Values.OrderBy(_ => _.DisplayName).ToList();
public List<IIndexer> GetAllIndexers() => _indexers.Values.OrderBy(_ => _.Name).ToList();
public async Task TestIndexer(string name)
{
@@ -309,10 +309,10 @@ namespace Jackett.Common.Services
};
var result = await indexer.ResultsForQuery(query);
_logger.Info($"Test search in {indexer.DisplayName} => Found {result.Releases.Count()} releases");
_logger.Info($"Test search in {indexer.Name} => Found {result.Releases.Count()} releases");
if (!result.Releases.Any())
throw new Exception($"Test search in {indexer.DisplayName} => Found no results while trying to browse this tracker");
throw new Exception($"Test search in {indexer.Name} => Found no results while trying to browse this tracker");
}
public void DeleteIndexer(string name)