mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Animebytes username requirement (#3076)
This commit is contained in:
@@ -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);
|
||||
|
@@ -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 = "" };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user