This commit is contained in:
Elwador 2024-05-04 21:32:00 +02:00
parent dbacd7df97
commit 54fc08fa24
1 changed files with 26 additions and 35 deletions

View File

@ -5,34 +5,34 @@ namespace CRD.Utils.Structs;
public class CrDownloadOptions{
[YamlMember(Alias = "hard_sub_lang", ApplyNamingConventions = false)]
public string Hslang{ get; set; } //locale string none or locale
public string Hslang{ get; set; }
[YamlIgnore]
public int Kstream{ get; set; }
[YamlMember(Alias = "no_video", ApplyNamingConventions = false)]
public bool Novids{ get; set; } //dont download videos
public bool Novids{ get; set; }
[YamlMember(Alias = "no_audio", ApplyNamingConventions = false)]
public bool Noaudio{ get; set; } //dont download audio
public bool Noaudio{ get; set; }
[YamlIgnore]
public int X{ get; set; } // selected server
public int StreamServer{ get; set; }
[YamlMember(Alias = "quality_video", ApplyNamingConventions = false)]
public string QualityVideo{ get; set; } //quality 0 is best
public string QualityVideo{ get; set; }
[YamlMember(Alias = "quality_audio", ApplyNamingConventions = false)]
public string QualityAudio{ get; set; } //quality 0 is best
public string QualityAudio{ get; set; }
[YamlMember(Alias = "file_name", ApplyNamingConventions = false)]
public string FileName{ get; set; } //
public string FileName{ get; set; }
[YamlMember(Alias = "leading_numbers", ApplyNamingConventions = false)]
public int Numbers{ get; set; } //leading 0 probably
public int Numbers{ get; set; }
[YamlIgnore]
public int Partsize{ get; set; } // download parts at same time?
public int Partsize{ get; set; }
[YamlIgnore]
public int Timeout{ get; set; }
@ -44,67 +44,58 @@ public class CrDownloadOptions{
public int FsRetryTime{ get; set; }
[YamlMember(Alias = "soft_subs", ApplyNamingConventions = false)]
public List<string> DlSubs{ get; set; } //all or local for subs to download
public List<string> DlSubs{ get; set; }
[YamlIgnore]
public bool SkipSubs{ get; set; } // don't download subs
public bool SkipSubs{ get; set; }
[YamlIgnore]
public bool NoSubs{ get; set; } // don't download subs
public bool NoSubs{ get; set; }
[YamlMember(Alias = "mux_mp4", ApplyNamingConventions = false)]
public bool Mp4{ get; set; } // mp4 output else mkv
public bool Mp4{ get; set; }
[YamlIgnore]
public List<string> Override{ get; set; }
[YamlIgnore]
public string VideoTitle{ get; set; } // ???
public string VideoTitle{ get; set; }
[YamlIgnore]
public string Force{ get; set; } // always Y
public string Force{ get; set; }
[YamlMember(Alias = "mux_ffmpeg", ApplyNamingConventions = false)]
public List<string> FfmpegOptions{ get; set; } //additional ffmpeg options
public List<string> FfmpegOptions{ get; set; }
[YamlMember(Alias = "mux_mkvmerge", ApplyNamingConventions = false)]
public List<string> MkvmergeOptions{ get; set; } //additional mkvmerge
public List<string> MkvmergeOptions{ get; set; }
[YamlIgnore]
public LanguageItem DefaultSub{ get; set; } //default sub
public LanguageItem DefaultSub{ get; set; }
[YamlIgnore]
public LanguageItem DefaultAudio{ get; set; } //default audio
public LanguageItem DefaultAudio{ get; set; }
[YamlIgnore]
public string CcTag{ get; set; } //cc tag ??
public string CcTag{ get; set; }
[YamlIgnore]
public bool DlVideoOnce{ get; set; } // don't download same video multiple times
public bool DlVideoOnce{ get; set; }
[YamlIgnore]
public bool? Skipmux{ get; set; } //mux in the end or not
public bool? Skipmux{ get; set; }
[YamlIgnore]
public bool SyncTiming{ get; set; } // sync timing in muxing
public bool SyncTiming{ get; set; }
[YamlIgnore]
public bool Nocleanup{ get; set; } // cleanup files after muxing
public bool Nocleanup{ get; set; }
[YamlMember(Alias = "chapters", ApplyNamingConventions = false)]
public bool Chapters{ get; set; } // download chaperts
[YamlIgnore]
public string? FontName{ get; set; } //font sutff
[YamlIgnore]
public bool OriginalFontSize{ get; set; } //font sutff
[YamlIgnore]
public int FontSize{ get; set; } //font sutff
public bool Chapters{ get; set; }
[YamlMember(Alias = "dub_lang", ApplyNamingConventions = false)]
public List<string> DubLang{ get; set; } //dub lang download
public List<string> DubLang{ get; set; }
[YamlMember(Alias = "simultaneous_downloads", ApplyNamingConventions = false)]
public int SimultaneousDownloads{ get; set; }