Add CGPeers tracker

This commit is contained in:
kaso17 2017-02-02 18:04:25 +01:00
parent c60b35058d
commit d4453a440e
3 changed files with 35 additions and 1 deletions

View File

@ -216,7 +216,7 @@ namespace Jackett.Indexers.Abstract
release.Guid = release.Comments;
release.Link = new Uri(DownloadUrl + torrentId);
var category = (string)torrent["category"];
if (category == null)
if (category == null || category.Contains("Select Category"))
release.Category = MapTrackerCatToNewznab("1");
else
release.Category = MapTrackerCatDescToNewznab(category);

View File

@ -0,0 +1,33 @@
using Jackett.Models;
using NLog;
using Jackett.Services;
using Jackett.Utils.Clients;
using Jackett.Indexers.Abstract;
namespace Jackett.Indexers
{
public class CGPeers : GazelleTracker, IIndexer
{
public CGPeers(IIndexerManagerService indexerManager, IWebClient webClient, Logger logger, IProtectionService protectionService)
: base(name: "CGPeers",
desc: null,
link: "https://www.cgpeers.com/",
indexerManager: indexerManager,
logger: logger,
protectionService: protectionService,
webClient: webClient
)
{
Language = "en-us";
Type = "private";
AddCategoryMapping(1, TorznabCatType.PCISO, "Full Applications");
AddCategoryMapping(2, TorznabCatType.PC0day, "Plugins");
AddCategoryMapping(3, TorznabCatType.Other, "Tutorials");
AddCategoryMapping(4, TorznabCatType.Other, "Models");
AddCategoryMapping(5, TorznabCatType.Other, "Materials");
AddCategoryMapping(6, TorznabCatType.OtherMisc, "Misc");
AddCategoryMapping(7, TorznabCatType.Other, "GameDev");
}
}
}

View File

@ -179,6 +179,7 @@
<Compile Include="Controllers\DownloadController.cs" />
<Compile Include="Engine.cs" />
<Compile Include="Indexers\HDOnly.cs" />
<Compile Include="Indexers\CGPeers.cs" />
<Compile Include="Indexers\PiXELHD.cs" />
<Compile Include="Indexers\Hardbay.cs" />
<Compile Include="Indexers\Rarbg.cs" />