Some fixes

This commit is contained in:
2026-08-13 12:39:03 +02:00
parent 027fc683ef
commit ab46a16726
11 changed files with 373 additions and 14 deletions
+8 -3
View File
@@ -11,8 +11,11 @@ public sealed record AppSettings(
string TrimStart,
string FadeSeconds,
string EndCardHoldSeconds,
string ThumbnailInterval)
string ThumbnailInterval,
bool? MoveSourcesToOriginals)
{
public bool ShouldMoveSourcesToOriginals => MoveSourcesToOriginals != false;
public static AppSettings Default(string outputFolder) => new(
outputFolder,
"",
@@ -24,7 +27,8 @@ public sealed record AppSettings(
"4.414",
"3",
"4",
"10");
"10",
true);
public AppSettings Normalize(string fallbackOutputFolder) => new(
string.IsNullOrWhiteSpace(OutputFolder) ? fallbackOutputFolder : OutputFolder,
@@ -37,5 +41,6 @@ public sealed record AppSettings(
string.IsNullOrWhiteSpace(TrimStart) ? "4.414" : TrimStart,
string.IsNullOrWhiteSpace(FadeSeconds) ? "3" : FadeSeconds,
string.IsNullOrWhiteSpace(EndCardHoldSeconds) ? "4" : EndCardHoldSeconds,
string.IsNullOrWhiteSpace(ThumbnailInterval) ? "10" : ThumbnailInterval);
string.IsNullOrWhiteSpace(ThumbnailInterval) ? "10" : ThumbnailInterval,
MoveSourcesToOriginals ?? true);
}
+1
View File
@@ -19,6 +19,7 @@ public sealed record RenderSettings(
double FadeSeconds,
double EndCardHoldSeconds,
int ThumbnailInterval,
bool MoveSourcesToOriginals = true,
int Width = 3840,
int Height = 2160,
int FramesPerSecond = 50,