feat: add native fnOS package

This commit is contained in:
2026-08-02 14:43:37 +08:00
parent e62dfd2de1
commit e8772a39b5
24 changed files with 842 additions and 4 deletions
@@ -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);