Fixed: Don't call to ConfigService for every Cardigann Result

This commit is contained in:
Qstick 2021-03-23 20:36:11 -04:00
parent d9ef1c72c0
commit 6f25e1e6a2

View file

@ -31,6 +31,8 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
_logger.Debug("Parsing");
var indexerLogging = _configService.LogIndexerResponse;
if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
{
// Remove cookie cache
@ -102,7 +104,6 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
try
{
var release = new CardigannReleaseInfo();
var indexerLogging = _configService.LogIndexerResponse;
// Parse fields
foreach (var field in search.Fields)