mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 15:21:06 +00:00
parent
37daacf9fa
commit
74054523c5
1 changed files with 10 additions and 3 deletions
|
@ -19,9 +19,15 @@ namespace Jackett.Common.Indexers
|
||||||
{
|
{
|
||||||
public class TorrentHeaven : BaseWebIndexer
|
public class TorrentHeaven : BaseWebIndexer
|
||||||
{
|
{
|
||||||
|
public override string[] LegacySiteLinks { get; protected set; } = new string[] {
|
||||||
|
"https://torrentheaven.myfqdn.info/",
|
||||||
|
};
|
||||||
private string IndexUrl { get { return SiteLink + "index.php"; } }
|
private string IndexUrl { get { return SiteLink + "index.php"; } }
|
||||||
private string LoginCompleteUrl { get { return SiteLink + "index.php?strWebValue=account&strWebAction=login_complete&ancestry=verify"; } }
|
private string LoginCompleteUrl { get { return SiteLink + "index.php?strWebValue=account&strWebAction=login_complete&ancestry=verify"; } }
|
||||||
private static readonly string certificateHash = "6F5CE30D578C2A7AECFB919D0D013976D395055F";
|
private static readonly string[] certificateHashs = new string[] {
|
||||||
|
"6F5CE30D578C2A7AECFB919D0D013976D395055F",
|
||||||
|
"66096DB5FD0107E4FFBAF5EC8378EB235CADA909",
|
||||||
|
};
|
||||||
|
|
||||||
private new ConfigurationDataCaptchaLogin configData
|
private new ConfigurationDataCaptchaLogin configData
|
||||||
{
|
{
|
||||||
|
@ -32,7 +38,7 @@ namespace Jackett.Common.Indexers
|
||||||
public TorrentHeaven(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
public TorrentHeaven(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
||||||
: base(name: "TorrentHeaven",
|
: base(name: "TorrentHeaven",
|
||||||
description: "A German general tracker.",
|
description: "A German general tracker.",
|
||||||
link: "https://torrentheaven.myfqdn.info/",
|
link: "https://newheaven.nl/",
|
||||||
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
|
caps: TorznabUtil.CreateDefaultTorznabTVCaps(),
|
||||||
configService: configService,
|
configService: configService,
|
||||||
client: wc,
|
client: wc,
|
||||||
|
@ -92,6 +98,7 @@ namespace Jackett.Common.Indexers
|
||||||
AddCategoryMapping(70, TorznabCatType.PC, "APPLICATIONS/Linux");
|
AddCategoryMapping(70, TorznabCatType.PC, "APPLICATIONS/Linux");
|
||||||
AddCategoryMapping(71, TorznabCatType.PCMac, "APPLICATIONS/Mac");
|
AddCategoryMapping(71, TorznabCatType.PCMac, "APPLICATIONS/Mac");
|
||||||
|
|
||||||
|
foreach (var certificateHash in certificateHashs)
|
||||||
webclient.AddTrustedCertificate(new Uri(SiteLink).Host, certificateHash);
|
webclient.AddTrustedCertificate(new Uri(SiteLink).Host, certificateHash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue