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.
54 lines
1.5 KiB
54 lines
1.5 KiB
using System.Text.Json.Serialization;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Recyclarr.ServarrApi.MediaNaming;
|
|
|
|
public record SonarrMediaNamingDto : MediaNamingDto
|
|
{
|
|
private readonly string? _seriesFolderFormat;
|
|
private readonly string? _seasonFolderFormat;
|
|
private readonly string? _standardEpisodeFormat;
|
|
private readonly string? _dailyEpisodeFormat;
|
|
private readonly string? _animeEpisodeFormat;
|
|
private readonly bool? _renameEpisodes;
|
|
|
|
public string? SeriesFolderFormat
|
|
{
|
|
get => _seriesFolderFormat;
|
|
init => DtoUtil.SetIfNotNull(ref _seriesFolderFormat, value);
|
|
}
|
|
|
|
public string? SeasonFolderFormat
|
|
{
|
|
get => _seasonFolderFormat;
|
|
init => DtoUtil.SetIfNotNull(ref _seasonFolderFormat, value);
|
|
}
|
|
|
|
public string? StandardEpisodeFormat
|
|
{
|
|
get => _standardEpisodeFormat;
|
|
init => DtoUtil.SetIfNotNull(ref _standardEpisodeFormat, value);
|
|
}
|
|
|
|
public string? DailyEpisodeFormat
|
|
{
|
|
get => _dailyEpisodeFormat;
|
|
init => DtoUtil.SetIfNotNull(ref _dailyEpisodeFormat, value);
|
|
}
|
|
|
|
public string? AnimeEpisodeFormat
|
|
{
|
|
get => _animeEpisodeFormat;
|
|
init => DtoUtil.SetIfNotNull(ref _animeEpisodeFormat, value);
|
|
}
|
|
|
|
public bool? RenameEpisodes
|
|
{
|
|
get => _renameEpisodes;
|
|
init => DtoUtil.SetIfNotNull(ref _renameEpisodes, value);
|
|
}
|
|
|
|
[UsedImplicitly] [JsonExtensionData]
|
|
public Dictionary<string, object> ExtraJson { get; init; } = new();
|
|
}
|