GET/PUT /api/settings/{ffmpeg,playout,xmltv,scanner,logging,ui,hdhr}
wrapping the existing MediatR settings handlers, plus custom resolution
list/create/delete under /api/settings/resolutions. String-enum OpenAPI
schemas extended to OutputFormatKind + LogEventLevel.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
25 lines
730 B
C#
25 lines
730 B
C#
using System.Text.Json.Serialization;
|
|
using ErsatzTV.FFmpeg.OutputFormat;
|
|
|
|
namespace ErsatzTV.Core.Api.Settings;
|
|
|
|
#nullable enable
|
|
|
|
public record FFmpegSettingsResponseModel(
|
|
string FFmpegPath,
|
|
string FFprobePath,
|
|
int DefaultFFmpegProfileId,
|
|
string PreferredAudioLanguageCode,
|
|
bool UseEmbeddedSubtitles,
|
|
bool ExtractEmbeddedSubtitles,
|
|
bool ProbeForInterlacedFrames,
|
|
bool SaveReports,
|
|
int? GlobalWatermarkId,
|
|
int? GlobalFallbackFillerId,
|
|
int HlsSegmenterIdleTimeout,
|
|
int WorkAheadSegmenterLimit,
|
|
int InitialSegmentCount,
|
|
[property: JsonConverter(typeof(JsonStringEnumConverter<OutputFormatKind>))]
|
|
OutputFormatKind HlsDirectOutputFormat,
|
|
string DefaultMpegTsScript);
|