You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
using JetBrains.Annotations;
|
|
using Recyclarr.TrashLib.Config;
|
|
using Recyclarr.TrashLib.Config.Services;
|
|
|
|
namespace Recyclarr.TrashLib.Services.Sonarr.Config;
|
|
|
|
public class SonarrConfiguration : ServiceConfiguration
|
|
{
|
|
public override SupportedServices ServiceType => SupportedServices.Sonarr;
|
|
|
|
public IList<ReleaseProfileConfig> ReleaseProfiles { get; [UsedImplicitly] init; } =
|
|
Array.Empty<ReleaseProfileConfig>();
|
|
}
|
|
|
|
public class ReleaseProfileConfig
|
|
{
|
|
public IReadOnlyCollection<string> TrashIds { get; [UsedImplicitly] init; } = Array.Empty<string>();
|
|
public bool StrictNegativeScores { get; [UsedImplicitly] init; }
|
|
public IReadOnlyCollection<string> Tags { get; [UsedImplicitly] init; } = Array.Empty<string>();
|
|
public SonarrProfileFilterConfig? Filter { get; [UsedImplicitly] init; }
|
|
}
|
|
|
|
public class SonarrProfileFilterConfig
|
|
{
|
|
public IReadOnlyCollection<string> Include { get; [UsedImplicitly] init; } = Array.Empty<string>();
|
|
public IReadOnlyCollection<string> Exclude { get; [UsedImplicitly] init; } = Array.Empty<string>();
|
|
}
|