AnimeBytes: update config items

This commit is contained in:
kaso17
2018-04-26 19:30:21 +02:00
parent 530ad7ecf5
commit 92f976916f
2 changed files with 17 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
namespace Jackett.Common.Models.IndexerConfig.Bespoke namespace Jackett.Common.Models.IndexerConfig.Bespoke
{ {
class ConfigurationDataAnimeBytes : ConfigurationDataCaptchaLogin class ConfigurationDataAnimeBytes : ConfigurationDataPasskey
{ {
public BoolItem IncludeRaw { get; private set; } public BoolItem IncludeRaw { get; private set; }
public DisplayItem DateWarning { get; private set; } //public DisplayItem DateWarning { get; private set; }
public BoolItem InsertSeason { get; private set; } public BoolItem InsertSeason { get; private set; }
public BoolItem AddSynonyms { get; private set; } public BoolItem AddSynonyms { get; private set; }
public BoolItem FilterSeasonEpisode { get; private set; } public BoolItem FilterSeasonEpisode { get; private set; }
@@ -12,7 +12,7 @@
: base() : base()
{ {
IncludeRaw = new BoolItem() { Name = "IncludeRaw", Value = false }; IncludeRaw = new BoolItem() { Name = "IncludeRaw", Value = false };
DateWarning = new DisplayItem("This tracker does not supply upload dates so they are based off year of release.") { Name = "DateWarning" }; //DateWarning = new DisplayItem("This tracker does not supply upload dates so they are based off year of release.") { Name = "DateWarning" };
InsertSeason = new BoolItem() { Name = "Prefix episode number with E0 for Sonarr Compatability", Value = false }; InsertSeason = new BoolItem() { Name = "Prefix episode number with E0 for Sonarr Compatability", Value = false };
AddSynonyms = new BoolItem() { Name = "Add releases for each synonym title", Value = true }; AddSynonyms = new BoolItem() { Name = "Add releases for each synonym title", Value = true };
FilterSeasonEpisode = new BoolItem() { Name = "Filter results by season/episode", Value = false }; FilterSeasonEpisode = new BoolItem() { Name = "Filter results by season/episode", Value = false };

View File

@@ -0,0 +1,14 @@
namespace Jackett.Common.Models.IndexerConfig
{
public class ConfigurationDataPasskey : ConfigurationData
{
public StringItem Passkey { get; private set; }
public DisplayItem Instructions { get; private set; }
public ConfigurationDataPasskey(string instructionMessageOptional = null)
{
Passkey = new StringItem { Name = "Passkey" };
Instructions = new DisplayItem(instructionMessageOptional) { Name = "" };
}
}
}