Add sonarr search option (#18)

* added Sonarr search type option

* updated test data

* fixed duplicated Sonarr search items when using search type Season

* added enhanced logging option along with Sonarr and Radarr enhanced logs

* switched to ghcr.io
This commit is contained in:
Marius Nechifor
2024-12-04 22:38:32 +02:00
committed by GitHub
parent 43a11f0e4c
commit f35abdefe5
66 changed files with 554 additions and 212 deletions
@@ -1,4 +1,4 @@
namespace Common.Configuration;
namespace Common.Configuration.Arr;
public abstract record ArrConfig
{
@@ -1,4 +1,4 @@
namespace Common.Configuration;
namespace Common.Configuration.Arr;
public sealed class ArrInstance
{
@@ -1,4 +1,4 @@
namespace Common.Configuration;
namespace Common.Configuration.Arr;
public sealed record RadarrConfig : ArrConfig
{
@@ -1,6 +1,8 @@
namespace Common.Configuration;
namespace Common.Configuration.Arr;
public sealed record SonarrConfig : ArrConfig
{
public const string SectionName = "Sonarr";
public SonarrSearchType SearchType { get; init; }
}
@@ -0,0 +1,8 @@
namespace Common.Configuration.Arr;
public enum SonarrSearchType
{
Episode,
Season,
Series
}
@@ -1,6 +1,4 @@
using System.Security;
namespace Common.Configuration;
namespace Common.Configuration.DownloadClient;
public sealed record DelugeConfig : IConfig
{
@@ -1,6 +1,4 @@
using System.ComponentModel.DataAnnotations;
namespace Common.Configuration;
namespace Common.Configuration.DownloadClient;
public sealed class QBitConfig : IConfig
{
@@ -1,4 +1,4 @@
namespace Common.Configuration;
namespace Common.Configuration.DownloadClient;
public record TransmissionConfig
{
@@ -8,6 +8,8 @@ public class LoggingConfig : IConfig
public LogEventLevel LogLevel { get; set; }
public bool Enhanced { get; set; }
public FileLogConfig? File { get; set; }
public void Validate()