From 01a1860df2cfeefd5fe2b2d974bf72976581e433 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Mon, 25 May 2026 15:35:32 -0500 Subject: [PATCH] fix: use case-insensitive lookup for mpeg-ts script --- .../FFmpegProfiles/Queries/GetFFmpegSettingsHandler.cs | 2 +- .../Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs | 2 +- ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ErsatzTV.Application/FFmpegProfiles/Queries/GetFFmpegSettingsHandler.cs b/ErsatzTV.Application/FFmpegProfiles/Queries/GetFFmpegSettingsHandler.cs index dd3a80d6d..b8b555e95 100644 --- a/ErsatzTV.Application/FFmpegProfiles/Queries/GetFFmpegSettingsHandler.cs +++ b/ErsatzTV.Application/FFmpegProfiles/Queries/GetFFmpegSettingsHandler.cs @@ -72,7 +72,7 @@ public class GetFFmpegSettingsHandler(IConfigElementRepository configElementRepo WorkAheadSegmenterLimit = await workAheadSegmenterLimit.IfNoneAsync(1), InitialSegmentCount = await initialSegmentCount.IfNoneAsync(1), HlsDirectOutputFormat = await outputFormatKind.IfNoneAsync(OutputFormatKind.MpegTs), - DefaultMpegTsScript = await defaultMpegTsScript.IfNoneAsync("Default"), + DefaultMpegTsScript = await defaultMpegTsScript.IfNoneAsync("default"), }; foreach (int watermarkId in watermark) diff --git a/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs b/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs index c9cec698d..6d10ca596 100644 --- a/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs +++ b/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs @@ -264,7 +264,7 @@ public class GetTroubleshootingInfoHandler : IRequestHandler(ConfigElementKey.FFmpegDefaultMpegTsScript, cancellationToken) - .IfNoneAsync("Default"); + .IfNoneAsync("default"); List allScripts = _mpegTsScriptService.GetScripts(); - Option maybeScript = Optional(allScripts.Find(s => s.Id == defaultScript)); + Option maybeScript = Optional(allScripts.Find(s => string.Equals(s.Id, defaultScript, StringComparison.OrdinalIgnoreCase))); foreach (var script in maybeScript) { Option maybeCommand = await _mpegTsScriptService.Execute(