2020-02-09 02:35:16 +00:00
|
|
|
using Jackett.Common.Models;
|
2018-03-10 08:05:56 +00:00
|
|
|
using Jackett.Common.Models.IndexerConfig;
|
|
|
|
using Jackett.Common.Services.Interfaces;
|
|
|
|
using Jackett.Common.Utils.Clients;
|
2017-05-14 16:55:36 +00:00
|
|
|
using NLog;
|
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
namespace Jackett.Common.Indexers.Meta
|
2017-05-14 16:55:36 +00:00
|
|
|
{
|
2017-11-05 09:42:03 +00:00
|
|
|
public class AggregateIndexer : BaseMetaIndexer
|
2017-05-14 16:55:36 +00:00
|
|
|
{
|
2020-05-11 19:59:28 +00:00
|
|
|
public AggregateIndexer(IFallbackStrategyProvider fallbackStrategyProvider,
|
|
|
|
IResultFilterProvider resultFilterProvider, IIndexerConfigurationService configService,
|
|
|
|
WebClient client, Logger logger, IProtectionService ps)
|
|
|
|
: base(id: "all",
|
|
|
|
name: "AggregateSearch",
|
|
|
|
description: "This feed includes all configured trackers",
|
|
|
|
configService: configService,
|
|
|
|
client: client,
|
|
|
|
logger: logger,
|
|
|
|
p: ps,
|
|
|
|
configData: new ConfigurationData(),
|
|
|
|
fallbackStrategyProvider: fallbackStrategyProvider,
|
|
|
|
resultFilterProvider: resultFilterProvider,
|
|
|
|
filter: x => true)
|
2017-05-14 16:55:36 +00:00
|
|
|
{
|
|
|
|
}
|
2017-08-17 07:50:10 +00:00
|
|
|
|
|
|
|
public override TorznabCapabilities TorznabCaps
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
// increase the limits (workaround until proper paging is supported, issue #1661)
|
|
|
|
var caps = base.TorznabCaps;
|
|
|
|
caps.LimitsMax = caps.LimitsDefault = 1000;
|
|
|
|
return caps;
|
|
|
|
}
|
|
|
|
}
|
2017-05-14 16:55:36 +00:00
|
|
|
}
|
2020-02-09 02:35:16 +00:00
|
|
|
}
|