feat: add native fnOS package
This commit is contained in:
@@ -130,7 +130,7 @@ public sealed class SystemSettingsService : ISystemSettingsService
|
||||
return new SystemSettingsDto
|
||||
{
|
||||
FfmpegPath = GetValue(lookup, FfmpegPathKey, "ffmpeg"),
|
||||
OutputRoot = GetValue(lookup, OutputRootKey, "records"),
|
||||
OutputRoot = GetValue(lookup, OutputRootKey, GetDefaultOutputRoot()),
|
||||
OutputDirectoryTemplate = GetValue(lookup, OutputDirectoryTemplateKey, "{platform}/{yyyy}/{MM}/{dd}/{anchor}"),
|
||||
OutputFileNameTemplate = GetValue(lookup, OutputFileNameTemplateKey, "{HHmmss}_{quality}_{anchor}_{title}_{roomId}{segmentSuffix}"),
|
||||
DefaultQuality = GetValue(lookup, DefaultQualityKey, "origin"),
|
||||
@@ -292,6 +292,12 @@ public sealed class SystemSettingsService : ISystemSettingsService
|
||||
};
|
||||
}
|
||||
|
||||
private static string GetDefaultOutputRoot()
|
||||
{
|
||||
var configured = Environment.GetEnvironmentVariable("LIVE_RECORDER_DEFAULT_OUTPUT_ROOT");
|
||||
return string.IsNullOrWhiteSpace(configured) ? "records" : configured.Trim();
|
||||
}
|
||||
|
||||
public async Task<SystemSettingsDto> UpdateAsync(UpdateSystemSettingsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(request);
|
||||
|
||||
Reference in New Issue
Block a user