1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 22:23:20 +00:00

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] music-search: [q]
book-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: search:
paths: paths:

View file

@ -50,6 +50,10 @@ settings:
options: options:
2: desc 2: desc
1: asc 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: search:
paths: paths:

View file

@ -40,7 +40,11 @@ caps:
music-search: [q] music-search: [q]
book-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: download:
infohash: infohash:

View file

@ -14,6 +14,7 @@ using Jackett.Common.Services.Interfaces;
using Jackett.Common.Utils.Clients; using Jackett.Common.Utils.Clients;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using NLog; using NLog;
using static Jackett.Common.Models.IndexerConfig.ConfigurationData;
using WebClient = Jackett.Common.Utils.Clients.WebClient; using WebClient = Jackett.Common.Utils.Clients.WebClient;
namespace Jackett.Common.Indexers namespace Jackett.Common.Indexers
@ -60,6 +61,7 @@ namespace Jackett.Common.Indexers
cacheService: cs, cacheService: cs,
configData: new ConfigurationData()) 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() private TorznabCapabilities SetCapabilities()