using SqlSugar;
namespace dy.net.model.entity
{
[SugarTable(TableName = "dy_app_config")]
public class AppConfig
{
///
/// 是否是程序启动时...
///
public bool IsFirstRunning { get; set; }
///
///
///
[SugarColumn(IsPrimaryKey = true, Length = 100)]
public string Id { get; set; }
[SugarColumn(Length = 200, IsNullable = true)]
public int Cron { get; set; }
///
/// 每次查询数量
///
public int BatchCount { get; set; } = 18;
///
/// 新同步任务使用的全局存储。历史记录始终使用自身保存的存储类型。
///
public dy.net.model.dto.StorageType StorageType { get; set; } = dy.net.model.dto.StorageType.Local;
///
/// 博主视频是否 直接用标题做文件名
///
//public bool UperUseViedoTitle { get; set; }
///
/// 是否博主视频直接放一个根目录,不另外按名字建文件夹
///
//public bool UperSaveTogether { get; set; }
///
/// 是否下载图片视频
///
public bool DownImageVideo { get; set; }
///
/// 图文视频 是否额外下载图片
///
public bool DownImage { get; set; }
///
/// 图文视频 是否额外下载mp3
///
public bool DownMp3 { get; set; }
///
/// 日志保留天数,防止容器日志太多,默认10天
///
public int LogKeepDay { get; set; } = 10;
///
/// 关注的视频标题命名模板{id}{VideoTitle}{SyncTime}{ReleaseTime}{FileHash}{Resolution}{FileSize}
///
public string FollowedTitleTemplate { get; set; }
///
/// 分隔符
///
public string FollowedTitleSeparator { get; set; }
///
/// 完整的标题模板,包含分隔符
///
public string FullFollowedTitleTemplate { get; set; }
///
/// 图文视频是否单独存放,否的话则按原类型存储位置存放,比如收藏夹、喜欢等
///
//public bool ImageViedoSaveAlone { get; set; }
///
/// 自动去重-逻辑是遇到相同ID的视频直接跳过
///
public bool AutoDistinct { get; set; }
///
/// 去重优先级配置,json字符串格式存储
///
[SugarColumn(Length = 500, IsNullable = true)]
public string PriorityLevel { get; set; }
///
/// 是否下载动态图视频
///
public bool DownDynamicVideo { get; set; }
///
/// 仅同步新视频(github 有人提议增加这个配置项,因为之前收藏了很多烂七八糟的视频。不想同步,又不想一个一个清除)
///
public bool OnlySyncNew { get; set; } = true;
///
/// 是否合并下载动态图视频
///
public bool MegDynamicVideo { get; set; }
///
/// 保留原动态视频文件
///
public bool KeepDynamicVideo { get; set; }
/////
///// 合集路径
/////
//[SugarColumn(Length = 500, IsNullable = true)]
//public string MixPath { get; set; }
/////
///// 短剧路径
/////
//[SugarColumn(Length = 500, IsNullable = true)]
//public string SeriesPath { get; set; }
///
/// 264 265 0-默认0=264
///
[SugarColumn(IsNullable = true)]
public int? VideoEncoder { get; set; }
///
/// 是否不启用刮削
///
[SugarColumn(IsNullable = true)]
public bool CloseNfo { get; set; }
}
}