Animebytes username requirement (#3076)

This commit is contained in:
flightlevel
2018-05-06 10:36:53 +10:00
committed by GitHub
parent e6b135e151
commit 8d921202fa
3 changed files with 6 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ namespace Jackett.Common.Indexers
TorznabCatType.AudioOther),
logger: l,
p: ps,
configData: new ConfigurationDataAnimeBytes())
configData: new ConfigurationDataAnimeBytes("Note about Passkey: This is not your login Password. Find the Passkey by logging into AnimeBytes with your browser"))
{
Encoding = Encoding.UTF8;
Language = "en-us";
@@ -139,6 +139,7 @@ namespace Jackett.Common.Indexers
cat = queryCats.First().ToString();
}
queryCollection.Add("username", configData.Username.Value);
queryCollection.Add("torrent_pass", configData.Passkey.Value);
queryCollection.Add("type", searchType);
queryCollection.Add("searchstr", searchTerm);

View File

@@ -1,6 +1,6 @@
namespace Jackett.Common.Models.IndexerConfig.Bespoke
{
class ConfigurationDataAnimeBytes : ConfigurationDataPasskey
class ConfigurationDataAnimeBytes : ConfigurationDataUserPasskey
{
public BoolItem IncludeRaw { get; private set; }
//public DisplayItem DateWarning { get; private set; }
@@ -8,7 +8,7 @@
public BoolItem AddSynonyms { get; private set; }
public BoolItem FilterSeasonEpisode { get; private set; }
public ConfigurationDataAnimeBytes()
public ConfigurationDataAnimeBytes(string instructionMessageOptional = null)
: base()
{
IncludeRaw = new BoolItem() { Name = "IncludeRaw", Value = false };
@@ -16,6 +16,7 @@
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 };
FilterSeasonEpisode = new BoolItem() { Name = "Filter results by season/episode", Value = false };
Instructions = new DisplayItem(instructionMessageOptional) { Name = "" };
}
}
}

View File

@@ -4,7 +4,7 @@ namespace Jackett.Common.Models.IndexerConfig
{
public StringItem Username { get; private set; }
public StringItem Passkey { get; private set; }
public DisplayItem Instructions { get; private set; }
public DisplayItem Instructions { get; protected set; }
public ConfigurationDataUserPasskey(string instructionMessageOptional = null)
{