diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2025-04-05 14:44:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-05 14:44:19 -0400 |
| commit | 7d705249cac50ab878f41b180b822488158c5900 (patch) | |
| tree | 1be92858539715bb0d9120c6355dfbbc9baddc94 /Jellyfin.Api/Controllers/LiveTvController.cs | |
| parent | de3d1445c06a9ca485079deee3d09e427b8b4402 (diff) | |
| parent | d0c1ef80027fabb4109e8131a950a2468fa9befd (diff) | |
Merge commit from fork
Fix validation of API parameters passed to FFmpeg
Diffstat (limited to 'Jellyfin.Api/Controllers/LiveTvController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LiveTvController.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs index 5461d12fa..10f1789ad 100644 --- a/Jellyfin.Api/Controllers/LiveTvController.cs +++ b/Jellyfin.Api/Controllers/LiveTvController.cs @@ -1190,7 +1190,9 @@ public class LiveTvController : BaseJellyfinApiController [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesVideoFile] - public ActionResult GetLiveStreamFile([FromRoute, Required] string streamId, [FromRoute, Required] string container) + public ActionResult GetLiveStreamFile( + [FromRoute, Required] string streamId, + [FromRoute, Required] [RegularExpression(EncodingHelper.ContainerValidationRegex)] string container) { var liveStreamInfo = _mediaSourceManager.GetLiveStreamInfoByUniqueId(streamId); if (liveStreamInfo is null) |
