mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-29 21:49:13 +02:00
@@ -24,7 +24,7 @@ namespace Jackett.Common.Indexers.Abstract
|
||||
{
|
||||
protected virtual string LoginUrl => SiteLink + "login.php";
|
||||
protected virtual string APIUrl => SiteLink + "ajax.php";
|
||||
protected virtual string DownloadUrl => SiteLink + "torrents.php?action=download&usetoken=" + (useTokens ? "1" : "0") + "&id=";
|
||||
protected virtual string DownloadUrl => SiteLink + "torrents.php?action=download&usetoken=" + (useTokens ? "1" : "0") + (usePassKey ? "&torrent_pass=" + configData.PassKey.Value : "") + "&id=";
|
||||
protected virtual string DetailsUrl => SiteLink + "torrents.php?torrentid=";
|
||||
|
||||
protected bool useTokens;
|
||||
@@ -32,6 +32,7 @@ namespace Jackett.Common.Indexers.Abstract
|
||||
|
||||
private readonly bool imdbInTags;
|
||||
private readonly bool useApiKey;
|
||||
private readonly bool usePassKey;
|
||||
|
||||
private new ConfigurationDataGazelleTracker configData => (ConfigurationDataGazelleTracker)base.configData;
|
||||
|
||||
@@ -39,7 +40,7 @@ namespace Jackett.Common.Indexers.Abstract
|
||||
IIndexerConfigurationService configService, WebClient client, Logger logger,
|
||||
IProtectionService p, ICacheService cs, TorznabCapabilities caps,
|
||||
bool supportsFreeleechTokens, bool imdbInTags = false, bool has2Fa = false,
|
||||
bool useApiKey = false, string instructionMessageOptional = null)
|
||||
bool useApiKey = false, bool usePassKey = false, string instructionMessageOptional = null)
|
||||
: base(id: id,
|
||||
name: name,
|
||||
description: description,
|
||||
@@ -51,12 +52,13 @@ namespace Jackett.Common.Indexers.Abstract
|
||||
p: p,
|
||||
cacheService: cs,
|
||||
configData: new ConfigurationDataGazelleTracker(
|
||||
has2Fa, supportsFreeleechTokens, useApiKey, instructionMessageOptional))
|
||||
has2Fa, supportsFreeleechTokens, useApiKey, usePassKey, instructionMessageOptional))
|
||||
{
|
||||
Encoding = Encoding.UTF8;
|
||||
|
||||
this.imdbInTags = imdbInTags;
|
||||
this.useApiKey = useApiKey;
|
||||
this.usePassKey = usePassKey;
|
||||
}
|
||||
|
||||
public override void LoadValuesFromJson(JToken jsonConfig, bool useProtectionService = false)
|
||||
|
Reference in New Issue
Block a user