Core: rewrite of configuration items. Resolves #2114 (#11104)

This commit is contained in:
XYZJR
2021-03-17 00:29:26 +01:00
committed by GitHub
parent a6617ed663
commit eaf0513605
56 changed files with 693 additions and 604 deletions

View File

@@ -5,19 +5,19 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke
[ExcludeFromCodeCoverage]
internal class ConfigurationDataEliteTracker : ConfigurationDataBasicLogin
{
public BoolItem TorrentHTTPSMode { get; }
public BoolConfigurationItem TorrentHTTPSMode { get; }
// ReSharper disable once MemberCanBePrivate.Global
// ReSharper disable once UnusedAutoPropertyAccessor.Global
public DisplayItem PagesWarning { get; }
public StringItem ReplaceMulti { get; }
public BoolItem Vostfr { get; }
public DisplayInfoConfigurationItem PagesWarning { get; }
public StringConfigurationItem ReplaceMulti { get; }
public BoolConfigurationItem Vostfr { get; }
public ConfigurationDataEliteTracker()
{
TorrentHTTPSMode = new BoolItem { Name = "Use HTTPS for tracker URL", Value = false };
PagesWarning = new DisplayItem("<b>Preferences Configuration</b> (<i>Tweak your search settings</i>),<br /><br /> <ul><li><b>Replace MULTI</b>, replace multi keyword in the resultset (leave empty to deactivate)</li><li><b>Replace VOSTFR with ENGLISH</b> lets you change the titles by replacing VOSTFR with ENGLISH.</li></ul>") { Name = "Preferences" };
ReplaceMulti = new StringItem { Name = "Replace MULTI", Value = "MULTI.FRENCH" };
Vostfr = new BoolItem { Name = "Replace VOSTFR with ENGLISH", Value = false };
TorrentHTTPSMode = new BoolConfigurationItem("Use HTTPS for tracker URL") { Value = false };
PagesWarning = new DisplayInfoConfigurationItem("Preferences", "<b>Preferences Configuration</b> (<i>Tweak your search settings</i>),<br /><br /> <ul><li><b>Replace MULTI</b>, replace multi keyword in the resultset (leave empty to deactivate)</li><li><b>Replace VOSTFR with ENGLISH</b> lets you change the titles by replacing VOSTFR with ENGLISH.</li></ul>");
ReplaceMulti = new StringConfigurationItem("Replace MULTI") { Value = "MULTI.FRENCH" };
Vostfr = new BoolConfigurationItem("Replace VOSTFR with ENGLISH") { Value = false };
}
}
}