shazbat: refactor search and parsing (#13979)

This commit is contained in:
Bogdan
2023-02-07 04:29:23 +02:00
committed by GitHub
parent 8a35175d31
commit fe93e54ac1
3 changed files with 215 additions and 92 deletions

View File

@@ -0,0 +1,31 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;
namespace Jackett.Common.Models.IndexerConfig.Bespoke
{
[ExcludeFromCodeCoverage]
internal class ConfigurationDataShazbat : ConfigurationDataBasicLoginWithRSS
{
public SingleSelectConfigurationItem ShowPagesFetchLimit { get; private set; }
public DisplayInfoConfigurationItem ShowPagesFetchLimitInstructions { get; private set; }
public ConfigurationDataShazbat()
{
ShowPagesFetchLimit = new SingleSelectConfigurationItem(
"Show Pages Fetch Limit (sub-requests when searching)",
new Dictionary<string, string>
{
{"1", "1"},
{"2", "2"},
{"3", "3"},
{"4", "4"},
{"5", "5"}
})
{ Value = "2" };
ShowPagesFetchLimitInstructions = new DisplayInfoConfigurationItem("Show Pages Fetch Limit Warning", "Higher values may risk your account being flagged for bot activity when used with automation software such as Sonarr.");
}
}
}