From b2aa80ce5c1af2a4478d13b50c0961e11a6f5e6b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 31 Mar 2026 19:59:33 -0400 Subject: [PATCH] Fix invalid regex comparison --- Jellyfin.Api/Helpers/StreamingHelpers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs index 6d73b52ae2..e17468cfae 100644 --- a/Jellyfin.Api/Helpers/StreamingHelpers.cs +++ b/Jellyfin.Api/Helpers/StreamingHelpers.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; +using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using Jellyfin.Api.Extensions; @@ -485,7 +486,7 @@ public static class StreamingHelpers request.StartTimeTicks = long.Parse(val, CultureInfo.InvariantCulture); break; case 15: - if (videoRequest is not null && EncodingHelper.LevelValidationRegexStr().IsMatch(val)) + if (videoRequest is not null && Regex.IsMatch(val, EncodingHelper.LevelValidationRegexStr)) { videoRequest.Level = val; }