mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Add generic TorrentRssIndexer support.
Add support for generic RSS feeds. Parses the feed and tests if it is EZTV compatible, or if it has all required fields for the generic TorrentRssParser
This commit is contained in:

committed by
Taloth Saldono

parent
bbcabf0632
commit
9d7522cc15
@@ -18,7 +18,7 @@ namespace NzbDrone.Core.Indexers
|
||||
public abstract class HttpIndexerBase<TSettings> : IndexerBase<TSettings>
|
||||
where TSettings : IProviderConfig, new()
|
||||
{
|
||||
private const Int32 MaxNumResultsPerQuery = 1000;
|
||||
protected const Int32 MaxNumResultsPerQuery = 1000;
|
||||
|
||||
private readonly IHttpClient _httpClient;
|
||||
|
||||
@@ -190,13 +190,18 @@ namespace NzbDrone.Core.Indexers
|
||||
|
||||
protected virtual IList<ReleaseInfo> FetchPage(IndexerRequest request, IParseIndexerResponse parser)
|
||||
{
|
||||
_logger.Debug("Downloading Feed " + request.Url);
|
||||
|
||||
var response = new IndexerResponse(request, _httpClient.Execute(request.HttpRequest));
|
||||
var response = FetchIndexerResponse(request);
|
||||
|
||||
return parser.ParseResponse(response).ToList();
|
||||
}
|
||||
|
||||
protected virtual IndexerResponse FetchIndexerResponse(IndexerRequest request)
|
||||
{
|
||||
_logger.Debug("Downloading Feed " + request.Url);
|
||||
|
||||
return new IndexerResponse(request, _httpClient.Execute(request.HttpRequest));
|
||||
}
|
||||
|
||||
protected override void Test(List<ValidationFailure> failures)
|
||||
{
|
||||
failures.AddIfNotNull(TestConnection());
|
||||
|
Reference in New Issue
Block a user