mirror of
https://github.com/Jackett/Jackett.git
synced 2025-12-25 23:24:52 +01:00
30 lines
2.4 KiB
C#
30 lines
2.4 KiB
C#
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Jackett.Common.Models.IndexerConfig.Bespoke
|
|
{
|
|
[ExcludeFromCodeCoverage]
|
|
internal class ConfigurationDataNorbits : ConfigurationData
|
|
{
|
|
public DisplayInfoConfigurationItem CredentialsWarning { get; private set; }
|
|
public StringConfigurationItem Username { get; private set; }
|
|
public PasswordConfigurationItem Password { get; private set; }
|
|
public StringConfigurationItem TwoFactorAuth { get; private set; }
|
|
public BoolConfigurationItem freeleech { get; private set; }
|
|
public DisplayInfoConfigurationItem PagesWarning { get; private set; }
|
|
public BoolConfigurationItem UseFullSearch { get; private set; }
|
|
public DisplayInfoConfigurationItem AccountActivity { get; private set; }
|
|
|
|
public ConfigurationDataNorbits()
|
|
{
|
|
CredentialsWarning = new DisplayInfoConfigurationItem("Credentials", "<b>Credentials Configuration</b> (<i>Private Tracker</i>),<br /><br /> <ul><li><b>Username</b> is your account name on this tracker.</li><li><b>Password</b> is your password associated to your account name.</li></ul>");
|
|
Username = new StringConfigurationItem("Username") { Value = "" };
|
|
Password = new PasswordConfigurationItem("Password") { Value = "" };
|
|
TwoFactorAuth = new StringConfigurationItem("2FA Code (Optional)");
|
|
freeleech = new BoolConfigurationItem("Search freeleech only") { Value = false };
|
|
PagesWarning = new DisplayInfoConfigurationItem("Preferences", "<b>Preferences Configuration</b> (<i>Tweak your search settings</i>),<br /><br /> <ul><li><b>Max Pages to Process</b> let you specify how many page (max) Jackett can process when doing a search. Setting a value <b>higher than 4 is dangerous</b> for you account ! (<b>Result of too many requests to tracker...that <u>will be suspect</u></b>).</li></ul>");
|
|
UseFullSearch = new BoolConfigurationItem("Enable search in description.") { Value = false };
|
|
AccountActivity = new DisplayInfoConfigurationItem("Account Inactivity", "Parasites are deactivated after 28 days. (7 days below 0.3 in ratio, 7 days with a warning, 14 days as a parasite). Accounts with nothing downloaded or uploaded will be deactivated after 28 days. This only applies to newly registered accounts without torrent activity (e.g. not passing the norbits test).");
|
|
}
|
|
}
|
|
}
|