You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
983 B
27 lines
983 B
using NLog;
|
|
using NzbDrone.Core.Configuration;
|
|
using NzbDrone.Core.Download;
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
namespace NzbDrone.Core.Indexers
|
|
{
|
|
public abstract class UsenetIndexerBase<TSettings> : HttpIndexerBase<TSettings>
|
|
where TSettings : IIndexerSettings, new()
|
|
{
|
|
private readonly IValidateNzbs _nzbValidationService;
|
|
|
|
public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
|
|
|
|
protected UsenetIndexerBase(IIndexerHttpClient httpClient, IEventAggregator eventAggregator, IIndexerStatusService indexerStatusService, IConfigService configService, IValidateNzbs nzbValidationService, Logger logger)
|
|
: base(httpClient, eventAggregator, indexerStatusService, configService, logger)
|
|
{
|
|
_nzbValidationService = nzbValidationService;
|
|
}
|
|
|
|
protected override void ValidateDownloadData(byte[] fileData)
|
|
{
|
|
_nzbValidationService.Validate(fileData);
|
|
}
|
|
}
|
|
}
|