37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
|
|
using System.Text.Json.Serialization;
|
||
|
|
|
||
|
|
namespace TwitchArchive.Core.Config
|
||
|
|
{
|
||
|
|
public class GlobalConfig
|
||
|
|
{
|
||
|
|
[JsonPropertyName("archive_root")]
|
||
|
|
public string? ArchiveRoot { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("streamlink_path")]
|
||
|
|
public string? StreamlinkPath { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("ffmpeg_path")]
|
||
|
|
public string? FfmpegPath { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("twitchdownloader_path")]
|
||
|
|
public string? TwitchDownloaderPath { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("rclone_path")]
|
||
|
|
public string? RclonePath { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("upload_to_cloud")]
|
||
|
|
public bool UploadToCloud { get; set; } = false;
|
||
|
|
|
||
|
|
[JsonPropertyName("upload_destination")]
|
||
|
|
public string? UploadDestination { get; set; }
|
||
|
|
|
||
|
|
[JsonPropertyName("refresh_interval_seconds")]
|
||
|
|
public int RefreshIntervalSeconds { get; set; } = 60;
|
||
|
|
|
||
|
|
[JsonPropertyName("stream_segment_threads")]
|
||
|
|
public int StreamSegmentThreads { get; set; } = 4;
|
||
|
|
|
||
|
|
[JsonPropertyName("default_quality")]
|
||
|
|
public string? DefaultQuality { get; set; } = "best";
|
||
|
|
}
|
||
|
|
}
|