assorted: add flaresolverr info to config

This commit is contained in:
Garfield69 2024-03-12 05:57:02 +13:00
parent e3a6f34003
commit 75b5da81d2
4 changed files with 16 additions and 2 deletions

View File

@ -87,7 +87,11 @@ caps:
music-search: [q]
book-search: [q]
settings: []
settings:
- name: flaresolverr
type: info
label: FlareSolverr
default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolverr</a> to access it.
search:
paths:

View File

@ -50,6 +50,10 @@ settings:
options:
2: desc
1: asc
- name: flaresolverr
type: info
label: FlareSolverr
default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolverr</a> to access it.
search:
paths:

View File

@ -40,7 +40,11 @@ caps:
music-search: [q]
book-search: [q]
settings: []
settings:
- name: flaresolverr
type: info
label: FlareSolverr
default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolverr</a> to access it.
download:
infohash:

View File

@ -14,6 +14,7 @@ using Jackett.Common.Services.Interfaces;
using Jackett.Common.Utils.Clients;
using Newtonsoft.Json.Linq;
using NLog;
using static Jackett.Common.Models.IndexerConfig.ConfigurationData;
using WebClient = Jackett.Common.Utils.Clients.WebClient;
namespace Jackett.Common.Indexers
@ -60,6 +61,7 @@ namespace Jackett.Common.Indexers
cacheService: cs,
configData: new ConfigurationData())
{
configData.AddDynamic("flaresolverr", new DisplayInfoConfigurationItem("FlareSolverr", "This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href=\"https://github.com/Jackett/Jackett#configuring-flaresolverr\" target=\"_blank\">FlareSolverr</a> to access it."));
}
private TorznabCapabilities SetCapabilities()