mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
39 lines
1.6 KiB
C#
39 lines
1.6 KiB
C#
using NLog;
|
|
using NzbDrone.Core.Configuration;
|
|
using NzbDrone.Core.Indexers.Definitions.Gazelle;
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
namespace NzbDrone.Core.Indexers.Definitions;
|
|
|
|
public class CGPeers : GazelleBase<GazelleSettings>
|
|
{
|
|
public override string Name => "CGPeers";
|
|
public override string[] IndexerUrls => new[] { "https://cgpeers.to/" };
|
|
public override string Description => "CGPeers is a Private Torrent Tracker for GRAPHICS SOFTWARE / TUTORIALS / ETC";
|
|
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
|
|
|
|
public CGPeers(IIndexerHttpClient httpClient,
|
|
IEventAggregator eventAggregator,
|
|
IIndexerStatusService indexerStatusService,
|
|
IConfigService configService,
|
|
Logger logger)
|
|
: base(httpClient, eventAggregator, indexerStatusService, configService, logger)
|
|
{
|
|
}
|
|
|
|
protected override IndexerCapabilities SetCapabilities()
|
|
{
|
|
var caps = new IndexerCapabilities();
|
|
|
|
caps.Categories.AddCategoryMapping(1, NewznabStandardCategory.PCISO, "Full Applications");
|
|
caps.Categories.AddCategoryMapping(2, NewznabStandardCategory.PC0day, "Plugins");
|
|
caps.Categories.AddCategoryMapping(3, NewznabStandardCategory.Other, "Tutorials");
|
|
caps.Categories.AddCategoryMapping(4, NewznabStandardCategory.Other, "Models");
|
|
caps.Categories.AddCategoryMapping(5, NewznabStandardCategory.Other, "Materials");
|
|
caps.Categories.AddCategoryMapping(6, NewznabStandardCategory.OtherMisc, "Misc");
|
|
caps.Categories.AddCategoryMapping(7, NewznabStandardCategory.Other, "GameDev");
|
|
|
|
return caps;
|
|
}
|
|
}
|