1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-24 07:10:44 +00:00

Psytorrents: add expired certificate

This commit is contained in:
kaso17 2018-12-01 12:48:54 +01:00
parent 0f839682e1
commit d61bda4f8b

View file

@ -3,11 +3,16 @@ using Jackett.Common.Models;
using Jackett.Common.Services.Interfaces;
using Jackett.Common.Utils.Clients;
using NLog;
using System;
namespace Jackett.Common.Indexers
{
public class Psytorrents : GazelleTracker
{
private static readonly string[] certificateHashs = new string[] {
"455333CC651C249E1A91DFF8EFC2A5F8044FE956", // expired
};
public Psytorrents(IIndexerConfigurationService configService, WebClient webClient, Logger logger, IProtectionService protectionService)
: base(name: "Psytorrents",
desc: "Psytorrents (PSY) is a Private Torrent Tracker for ELECTRONIC MUSIC",
@ -22,9 +27,13 @@ namespace Jackett.Common.Indexers
Language = "en-us";
Type = "private";
AddCategoryMapping(1, TorznabCatType.Audio, "Music");
AddCategoryMapping(2, TorznabCatType.Movies, "Movies");
AddCategoryMapping(3, TorznabCatType.PC0day, "App");
foreach (var certificateHash in certificateHashs)
webclient.AddTrustedCertificate(new Uri(SiteLink).Host, certificateHash);
}
}
}