mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using NLog;
|
|
using NzbDrone.Common.Http;
|
|
using NzbDrone.Core.Configuration;
|
|
using NzbDrone.Core.IndexerVersions;
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
namespace NzbDrone.Core.Indexers.Definitions
|
|
{
|
|
public class AlphaRatio : Gazelle.Gazelle
|
|
{
|
|
public override string Name => "AlphaRatio";
|
|
|
|
public AlphaRatio(IIndexerHttpClient httpClient, IEventAggregator eventAggregator, IIndexerStatusService indexerStatusService, IIndexerDefinitionUpdateService definitionService, IConfigService configService, Logger logger)
|
|
: base(httpClient, eventAggregator, indexerStatusService, definitionService, configService, logger)
|
|
{
|
|
}
|
|
|
|
public override IIndexerRequestGenerator GetRequestGenerator()
|
|
{
|
|
return new AlphaRatioRequestGenerator()
|
|
{
|
|
Settings = Settings,
|
|
HttpClient = _httpClient,
|
|
Logger = _logger,
|
|
Capabilities = Capabilities
|
|
};
|
|
}
|
|
}
|
|
|
|
public class AlphaRatioRequestGenerator : Gazelle.GazelleRequestGenerator
|
|
{
|
|
protected override bool ImdbInTags => true;
|
|
}
|
|
}
|