2024-05-04 15:35:32 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using YamlDotNet.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace CRD.Utils.Structs;
|
|
|
|
|
|
|
|
|
|
public class CrDownloadOptions{
|
|
|
|
|
[YamlMember(Alias = "hard_sub_lang", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +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-04 19:32:00 +00:00
|
|
|
|
public bool Novids{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "no_audio", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool Noaudio{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public int StreamServer{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "quality_video", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public string QualityVideo{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "quality_audio", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public string QualityAudio{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "file_name", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public string FileName{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "leading_numbers", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public int Numbers{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +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-04 19:32:00 +00:00
|
|
|
|
public List<string> DlSubs{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool SkipSubs{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool NoSubs{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "mux_mp4", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool Mp4{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public List<string> Override{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public string VideoTitle{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public string Force{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "mux_ffmpeg", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public List<string> FfmpegOptions{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "mux_mkvmerge", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public List<string> MkvmergeOptions{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public LanguageItem DefaultSub{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public LanguageItem DefaultAudio{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public string CcTag{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool DlVideoOnce{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool? Skipmux{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool SyncTiming{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool Nocleanup{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "chapters", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +00:00
|
|
|
|
public bool Chapters{ get; set; }
|
2024-05-04 15:35:32 +00:00
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "dub_lang", ApplyNamingConventions = false)]
|
2024-05-04 19:32:00 +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; }
|
|
|
|
|
|
|
|
|
|
[YamlIgnore]
|
|
|
|
|
public string? SelectedCalendarLanguage{ get; set; }
|
|
|
|
|
|
|
|
|
|
[YamlMember(Alias = "history", ApplyNamingConventions = false)]
|
|
|
|
|
public bool History{ get; set; }
|
|
|
|
|
}
|