mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-05-07 18:49:50 +00:00
Add - Added Custom encoding presets Add - Added Skip Muxing to muxing settings Add - Added Dubs to file name settings Add - IP check in settings to check if VPN is being used Add - Dubs to "Add Downloads" Tab Add - Series folder link to history series if it finds the folder Add - Added command line arguments Add - Added proxy settings to the Settings tab (changes require a restart to take effect) Add - Added option to set "Sign" subs forced flag Add - Added option to set "CC" subs "hearing-impaired" flag Add - Added encoding presets editing Add - Added CC subtitles font option to the settings Add - Added available dubs to history episodes Chg - Defaults to system accent color when no color is selected in the settings Chg - Audio only mux to only copy and not encode Chg - Update dialog Chg - Light mode color adjustments Chg - Http Connection change to detect proxy (Clash) Chg - Settings filename description Chg - Changed FPS on encoding presets to 24fps Chg - Adjusted encoding to allow h264_nvenc & hevc_nvenc Chg - Moved sync timing folders from the Windows temp folder to the application root's temp folder Chg - The temp folder will now be deleted automatically when empty Fix - Locale not correctly applied to Urls in the "Add Downloads" Tab Fix - Locale not correctly applied to Search in the "Add Downloads" Tab Fix - Scrolling issue in settings Fix - Fix crash when removing streaming tokens (TOO_MANY_ACTIVE_STREAMS) Fix - Search didn't reset correctly Fix - Clash proxy didn't work Fix - Chapters were always taken from the original version (mainly JP) Fix - Connection issue Fix - Fixed an issue where proxy settings were only available when history was enabled Fix - Fixed scrolling issues with certain series in the "Add Downloads" tab Fix - Fixed an issue where History Series appeared incomplete after being added then deleted and re-added Fix - Fixed a crash related to sync timing
218 lines
No EOL
7.9 KiB
C#
218 lines
No EOL
7.9 KiB
C#
using System.Collections.Generic;
|
|
using CRD.Utils.Sonarr;
|
|
using CRD.ViewModels;
|
|
using YamlDotNet.Serialization;
|
|
|
|
namespace CRD.Utils.Structs;
|
|
|
|
public class CrDownloadOptions{
|
|
|
|
[YamlMember(Alias = "auto_download", ApplyNamingConventions = false)]
|
|
public bool AutoDownload{ get; set; }
|
|
|
|
|
|
[YamlMember(Alias = "remove_finished_downloads", ApplyNamingConventions = false)]
|
|
public bool RemoveFinishedDownload{ get; set; }
|
|
|
|
|
|
[YamlMember(Alias = "hard_sub_lang", ApplyNamingConventions = false)]
|
|
public string Hslang{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public int Kstream{ get; set; }
|
|
|
|
[YamlMember(Alias = "no_video", ApplyNamingConventions = false)]
|
|
public bool Novids{ get; set; }
|
|
|
|
[YamlMember(Alias = "no_audio", ApplyNamingConventions = false)]
|
|
public bool Noaudio{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public int StreamServer{ get; set; }
|
|
|
|
[YamlMember(Alias = "quality_video", ApplyNamingConventions = false)]
|
|
public string QualityVideo{ get; set; }
|
|
|
|
[YamlMember(Alias = "quality_audio", ApplyNamingConventions = false)]
|
|
public string QualityAudio{ get; set; }
|
|
|
|
[YamlMember(Alias = "file_name", ApplyNamingConventions = false)]
|
|
public string FileName{ get; set; }
|
|
|
|
[YamlMember(Alias = "leading_numbers", ApplyNamingConventions = false)]
|
|
public int Numbers{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public int Partsize{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public int Timeout{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public int Waittime{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public int FsRetryTime{ get; set; }
|
|
|
|
[YamlMember(Alias = "soft_subs", ApplyNamingConventions = false)]
|
|
public List<string> DlSubs{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public bool SkipSubs{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_skip_subs", ApplyNamingConventions = false)]
|
|
public bool SkipSubsMux{ get; set; }
|
|
|
|
[YamlMember(Alias = "subs_add_scaled_border", ApplyNamingConventions = false)]
|
|
public ScaledBorderAndShadowSelection SubsAddScaledBorder{ get; set; }
|
|
|
|
[YamlMember(Alias = "include_signs_subs", ApplyNamingConventions = false)]
|
|
public bool IncludeSignsSubs{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_signs_subs_flag", ApplyNamingConventions = false)]
|
|
public bool SignsSubsAsForced{ get; set; }
|
|
|
|
[YamlMember(Alias = "include_cc_subs", ApplyNamingConventions = false)]
|
|
public bool IncludeCcSubs{ get; set; }
|
|
|
|
[YamlMember(Alias = "cc_subs_font", ApplyNamingConventions = false)]
|
|
public string? CcSubsFont{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_cc_subs_flag", ApplyNamingConventions = false)]
|
|
public bool CcSubsMuxingFlag{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_mp4", ApplyNamingConventions = false)]
|
|
public bool Mp4{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public List<string> Override{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_video_title", ApplyNamingConventions = false)]
|
|
public string? VideoTitle{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_video_description", ApplyNamingConventions = false)]
|
|
public bool IncludeVideoDescription{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_description_lang", ApplyNamingConventions = false)]
|
|
public string? DescriptionLang{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public string Force{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_ffmpeg", ApplyNamingConventions = false)]
|
|
public List<string> FfmpegOptions{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_mkvmerge", ApplyNamingConventions = false)]
|
|
public List<string> MkvmergeOptions{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_default_sub", ApplyNamingConventions = false)]
|
|
public string DefaultSub{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_default_sub_signs", ApplyNamingConventions = false)]
|
|
public bool DefaultSubSigns{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_default_sub_forced_display", ApplyNamingConventions = false)]
|
|
public bool DefaultSubForcedDisplay{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_default_dub", ApplyNamingConventions = false)]
|
|
public string DefaultAudio{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public string CcTag{ get; set; }
|
|
|
|
[YamlMember(Alias = "dl_video_once", ApplyNamingConventions = false)]
|
|
public bool DlVideoOnce{ get; set; }
|
|
|
|
[YamlMember(Alias = "keep_dubs_seperate", ApplyNamingConventions = false)]
|
|
public bool KeepDubsSeperate{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_skip_muxing", ApplyNamingConventions = false)]
|
|
public bool SkipMuxing{ get; set; }
|
|
|
|
[YamlMember(Alias = "mux_sync_dubs", ApplyNamingConventions = false)]
|
|
public bool SyncTiming{ get; set; }
|
|
|
|
[YamlMember(Alias = "encode_enabled", ApplyNamingConventions = false)]
|
|
public bool IsEncodeEnabled{ get; set; }
|
|
|
|
[YamlMember(Alias = "encode_preset", ApplyNamingConventions = false)]
|
|
public string? EncodingPresetName{ get; set; }
|
|
|
|
[YamlIgnore]
|
|
public bool Nocleanup{ get; set; }
|
|
|
|
[YamlMember(Alias = "chapters", ApplyNamingConventions = false)]
|
|
public bool Chapters{ get; set; }
|
|
|
|
[YamlMember(Alias = "dub_lang", ApplyNamingConventions = false)]
|
|
public List<string> DubLang{ get; set; }
|
|
|
|
[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; }
|
|
|
|
[YamlMember(Alias = "calendar_language", ApplyNamingConventions = false)]
|
|
public string? SelectedCalendarLanguage{ get; set; }
|
|
|
|
[YamlMember(Alias = "calendar_dub_filter", ApplyNamingConventions = false)]
|
|
public string? CalendarDubFilter{ get; set; }
|
|
|
|
[YamlMember(Alias = "calendar_custom", ApplyNamingConventions = false)]
|
|
public bool CustomCalendar{ get; set; }
|
|
|
|
[YamlMember(Alias = "calendar_hide_dubs", ApplyNamingConventions = false)]
|
|
public bool CalendarHideDubs{ get; set; }
|
|
|
|
[YamlMember(Alias = "calendar_filter_by_air_date", ApplyNamingConventions = false)]
|
|
public bool CalendarFilterByAirDate{ get; set; }
|
|
|
|
[YamlMember(Alias = "history", ApplyNamingConventions = false)]
|
|
public bool History{ get; set; }
|
|
|
|
[YamlMember(Alias = "history_lang", ApplyNamingConventions = false)]
|
|
public string? HistoryLang{ get; set; }
|
|
|
|
[YamlMember(Alias = "history_add_specials", ApplyNamingConventions = false)]
|
|
public bool HistoryAddSpecials{ get; set; }
|
|
|
|
[YamlMember(Alias = "history_count_sonarr", ApplyNamingConventions = false)]
|
|
public bool HistoryCountSonarr{ get; set; }
|
|
|
|
[YamlMember(Alias = "sonarr_properties", ApplyNamingConventions = false)]
|
|
public SonarrProperties? SonarrProperties{ get; set; }
|
|
|
|
[YamlMember(Alias = "log_mode", ApplyNamingConventions = false)]
|
|
public bool LogMode{ get; set; }
|
|
|
|
[YamlMember(Alias = "stream_endpoint", ApplyNamingConventions = false)]
|
|
public string? StreamEndpoint{ get; set; }
|
|
|
|
[YamlMember(Alias = "download_dir_path", ApplyNamingConventions = false)]
|
|
public string? DownloadDirPath{ get; set; }
|
|
|
|
[YamlMember(Alias = "download_temp_dir_path", ApplyNamingConventions = false)]
|
|
public string? DownloadTempDirPath{ get; set; }
|
|
|
|
[YamlMember(Alias = "download_to_temp_folder", ApplyNamingConventions = false)]
|
|
public bool DownloadToTempFolder{ get; set; }
|
|
|
|
[YamlMember(Alias = "history_page_properties", ApplyNamingConventions = false)]
|
|
public HistoryPageProperties? HistoryPageProperties{ get; set; }
|
|
|
|
[YamlMember(Alias = "download_speed_limit", ApplyNamingConventions = false)]
|
|
public int DownloadSpeedLimit{ get; set; }
|
|
|
|
[YamlMember(Alias = "proxy_enabled", ApplyNamingConventions = false)]
|
|
public bool ProxyEnabled{ get; set; }
|
|
|
|
[YamlMember(Alias = "proxy_host", ApplyNamingConventions = false)]
|
|
public string? ProxyHost{ get; set; }
|
|
|
|
[YamlMember(Alias = "proxy_port", ApplyNamingConventions = false)]
|
|
public int ProxyPort{ get; set; }
|
|
} |