2024-05-04 15:35:32 +00:00
|
|
|
|
using System.Collections.Generic;
|
2024-05-25 22:02:45 +00:00
|
|
|
|
using CRD.Utils.Sonarr;
|
2024-06-26 22:04:50 +00:00
|
|
|
|
using CRD.ViewModels;
|
2024-05-04 15:35:32 +00:00
|
|
|
|
using YamlDotNet.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace CRD.Utils.Structs;
|
|
|
|
|
|
|
|
|
|
public class CrDownloadOptions{
|
2024-06-24 20:29:13 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public bool AutoDownload{ get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public bool RemoveFinishedDownload{ get; set; }
|
|
|
|
|
|
|
|
|
|
|
2024-05-04 15:35:32 +00:00
|
|
|
|
[YamlMember(Alias = "hard_sub_lang", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public string Hslang{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public int Kstream{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "no_video", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool Novids{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "no_audio", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool Noaudio{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public int StreamServer{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "quality_video", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public string QualityVideo{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "quality_audio", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public string QualityAudio{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "file_name", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public string FileName{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "leading_numbers", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public int Numbers{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public int Partsize{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public int Timeout{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public int Waittime{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public int FsRetryTime{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "soft_subs", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public List<string> DlSubs{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool SkipSubs{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
2024-06-19 00:16:02 +00:00
|
|
|
|
[YamlMember(Alias = "mux_skip_subs", ApplyNamingConventions = false)]
|
|
|
|
|
public bool SkipSubsMux{ get; set; }
|
|
|
|
|
|
2024-06-19 10:37:06 +00:00
|
|
|
|
[YamlMember(Alias = "subs_add_scaled_border", ApplyNamingConventions = false)]
|
|
|
|
|
public ScaledBorderAndShadowSelection SubsAddScaledBorder{ get; set; }
|
|
|
|
|
|
2024-06-24 15:40:20 +00:00
|
|
|
|
[YamlMember(Alias = "include_signs_subs", ApplyNamingConventions = false)]
|
|
|
|
|
public bool IncludeSignsSubs{ get; set; }
|
|
|
|
|
|
2024-05-04 15:35:32 +00:00
|
|
|
|
[YamlMember(Alias = "mux_mp4", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool Mp4{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public List<string> Override{ get; set; }
|
|
|
|
|
|
2024-06-24 15:40:20 +00:00
|
|
|
|
[YamlMember(Alias = "mux_video_title", ApplyNamingConventions = false)]
|
|
|
|
|
public string? VideoTitle{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "mux_video_description", ApplyNamingConventions = false)]
|
|
|
|
|
public bool IncludeVideoDescription{ get; set; }
|
2024-06-27 20:52:12 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "mux_description_lang", ApplyNamingConventions = false)]
|
|
|
|
|
public string? DescriptionLang{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public string Force{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "mux_ffmpeg", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public List<string> FfmpegOptions{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "mux_mkvmerge", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public List<string> MkvmergeOptions{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
2024-06-19 00:16:02 +00:00
|
|
|
|
[YamlMember(Alias = "mux_default_sub", ApplyNamingConventions = false)]
|
|
|
|
|
public string DefaultSub{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
2024-06-19 00:16:02 +00:00
|
|
|
|
[YamlMember(Alias = "mux_default_dub", ApplyNamingConventions = false)]
|
|
|
|
|
public string DefaultAudio{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public string CcTag{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
2024-06-19 00:16:02 +00:00
|
|
|
|
[YamlMember(Alias = "dl_video_once", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool DlVideoOnce{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool? Skipmux{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool SyncTiming{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool Nocleanup{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "chapters", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public bool Chapters{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "dub_lang", ApplyNamingConventions = false)]
|
2024-05-22 14:10:29 +00:00
|
|
|
|
public List<string> DubLang{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "simultaneous_downloads", ApplyNamingConventions = false)]
|
|
|
|
|
public int SimultaneousDownloads{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "theme", ApplyNamingConventions = false)]
|
|
|
|
|
public string Theme{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "accent_color", ApplyNamingConventions = false)]
|
|
|
|
|
public string? AccentColor{ get; set; }
|
|
|
|
|
|
2024-06-21 19:35:51 +00:00
|
|
|
|
[YamlMember(Alias = "calendar_language", ApplyNamingConventions = false)]
|
2024-05-04 15:35:32 +00:00
|
|
|
|
public string? SelectedCalendarLanguage{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "history", ApplyNamingConventions = false)]
|
|
|
|
|
public bool History{ get; set; }
|
2024-05-24 22:46:11 +00:00
|
|
|
|
|
2024-06-27 20:52:12 +00:00
|
|
|
|
[YamlMember(Alias = "history_lang", ApplyNamingConventions = false)]
|
|
|
|
|
public string? HistoryLang{ get; set; }
|
|
|
|
|
|
2024-05-25 22:02:45 +00:00
|
|
|
|
[YamlMember(Alias = "sonarr_properties", ApplyNamingConventions = false)]
|
|
|
|
|
public SonarrProperties? SonarrProperties{ get; set; }
|
|
|
|
|
|
2024-06-15 13:55:39 +00:00
|
|
|
|
[YamlMember(Alias = "log_mode", ApplyNamingConventions = false)]
|
|
|
|
|
public bool LogMode{ get; set; }
|
2024-06-19 01:50:10 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "stream_endpoint", ApplyNamingConventions = false)]
|
|
|
|
|
public string? StreamEndpoint{ get; set; }
|
2024-06-15 13:55:39 +00:00
|
|
|
|
|
2024-06-21 01:49:44 +00:00
|
|
|
|
[YamlMember(Alias = "download_dir_path", ApplyNamingConventions = false)]
|
|
|
|
|
public string? DownloadDirPath{ get; set; }
|
|
|
|
|
|
2024-06-26 22:04:50 +00:00
|
|
|
|
[YamlMember(Alias = "history_page_properties", ApplyNamingConventions = false)]
|
|
|
|
|
public HistoryPageProperties? HistoryPageProperties{ get; set; }
|
|
|
|
|
|
2024-05-04 15:35:32 +00:00
|
|
|
|
}
|