mirror of https://github.com/Jackett/Jackett
Add CGPeers tracker
This commit is contained in:
parent
c60b35058d
commit
d4453a440e
|
@ -216,7 +216,7 @@ namespace Jackett.Indexers.Abstract
|
||||||
release.Guid = release.Comments;
|
release.Guid = release.Comments;
|
||||||
release.Link = new Uri(DownloadUrl + torrentId);
|
release.Link = new Uri(DownloadUrl + torrentId);
|
||||||
var category = (string)torrent["category"];
|
var category = (string)torrent["category"];
|
||||||
if (category == null)
|
if (category == null || category.Contains("Select Category"))
|
||||||
release.Category = MapTrackerCatToNewznab("1");
|
release.Category = MapTrackerCatToNewznab("1");
|
||||||
else
|
else
|
||||||
release.Category = MapTrackerCatDescToNewznab(category);
|
release.Category = MapTrackerCatDescToNewznab(category);
|
||||||
|
|
|
@ -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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -179,6 +179,7 @@
|
||||||
<Compile Include="Controllers\DownloadController.cs" />
|
<Compile Include="Controllers\DownloadController.cs" />
|
||||||
<Compile Include="Engine.cs" />
|
<Compile Include="Engine.cs" />
|
||||||
<Compile Include="Indexers\HDOnly.cs" />
|
<Compile Include="Indexers\HDOnly.cs" />
|
||||||
|
<Compile Include="Indexers\CGPeers.cs" />
|
||||||
<Compile Include="Indexers\PiXELHD.cs" />
|
<Compile Include="Indexers\PiXELHD.cs" />
|
||||||
<Compile Include="Indexers\Hardbay.cs" />
|
<Compile Include="Indexers\Hardbay.cs" />
|
||||||
<Compile Include="Indexers\Rarbg.cs" />
|
<Compile Include="Indexers\Rarbg.cs" />
|
||||||
|
|
Loading…
Reference in New Issue