Replace API request with indexer request

This commit is contained in:
Bogdan
2023-05-18 02:48:38 +03:00
parent 48bb3196dd
commit 47ceabc834
17 changed files with 31 additions and 31 deletions
@@ -42,7 +42,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
throw new RequestLimitReachedException(indexerResponse, "PTP Query Limit Reached. Please try again later.");
}
throw new IndexerException(indexerResponse, $"Unexpected response status {indexerResponse.HttpResponse.StatusCode} code from API request");
throw new IndexerException(indexerResponse, $"Unexpected response status {indexerResponse.HttpResponse.StatusCode} code from indexer request");
}
if (indexerHttpResponse.Headers.ContentType != HttpAccept.Json.Value)
@@ -54,7 +54,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
}
// Remove cookie cache
throw new IndexerException(indexerResponse, $"Unexpected response header {indexerResponse.HttpResponse.Headers.ContentType} from API request, expected {HttpAccept.Json.Value}");
throw new IndexerException(indexerResponse, $"Unexpected response header {indexerResponse.HttpResponse.Headers.ContentType} from indexer request, expected {HttpAccept.Json.Value}");
}
var jsonResponse = STJson.Deserialize<PassThePopcornResponse>(indexerResponse.Content);