mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-04-10 17:19:52 -04:00
* 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
27 lines
547 B
C#
27 lines
547 B
C#
namespace Common.Configuration.DownloadClient;
|
|
|
|
public sealed class QBitConfig : IConfig
|
|
{
|
|
public const string SectionName = "qBittorrent";
|
|
|
|
public required bool Enabled { get; init; }
|
|
|
|
public Uri? Url { get; init; }
|
|
|
|
public string? Username { get; init; }
|
|
|
|
public string? Password { get; init; }
|
|
|
|
public void Validate()
|
|
{
|
|
if (!Enabled)
|
|
{
|
|
return;
|
|
}
|
|
|
|
if (Url is null)
|
|
{
|
|
throw new ArgumentNullException(nameof(Url));
|
|
}
|
|
}
|
|
} |