Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
b47641feaa
commit
4f488bae45
78 changed files with 3309 additions and 1570 deletions
37
dotnet/src/TwitchArchive.Core/Config/GlobalConfig.cs
Normal file
37
dotnet/src/TwitchArchive.Core/Config/GlobalConfig.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
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";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue