redacted: api re-enabled (#11893)

This commit is contained in:
seeyabye 2021-09-08 00:28:37 +09:00 committed by GitHub
parent 74031ec709
commit 8e6bd9c9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -13,10 +13,10 @@ namespace Jackett.Common.Indexers
[ExcludeFromCodeCoverage] [ExcludeFromCodeCoverage]
public class Redacted : GazelleTracker public class Redacted : GazelleTracker
{ {
protected override string DownloadUrl => SiteLink + "torrents.php?action=download&usetoken=" + (useTokens ? "1" : "0") + "&id="; protected override string DownloadUrl => SiteLink + "ajax.php?action=download&usetoken=" + (useTokens ? "1" : "0") + "&id=";
public Redacted(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps, public Redacted(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
ICacheService cs) ICacheService cs)
: base(id: "redacted", : base(id: "redacted",
name: "Redacted", name: "Redacted",
description: "A music tracker", description: "A music tracker",
@ -46,8 +46,9 @@ namespace Jackett.Common.Indexers
p: ps, p: ps,
cs: cs, cs: cs,
supportsFreeleechTokens: true, supportsFreeleechTokens: true,
has2Fa: true, has2Fa: false,
useApiKey: false useApiKey: true,
instructionMessageOptional: "<ol><li>Go to Redacted's site and open your account settings.</li><li>Go to <b>Access Settings</b> tab and copy the API Key.</li><li>Ensure that you've checked <b>Confirm API Key</b>.</li><li>Finally, click <b>Save Profile</b>.</li></ol>"
) )
{ {
Language = "en-us"; Language = "en-us";