Some fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user