diff options
| author | martenumberto <martenumberto@users.noreply.github.com> | 2025-12-28 07:22:18 -0500 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2025-12-28 07:22:18 -0500 |
| commit | 1af1c72e81c3100c5db1a58d853818910c125c10 (patch) | |
| tree | ae6f0e4c39b7fa9603a949869b00dd73c08a6461 /Jellyfin.Api | |
| parent | 55570043759bcfa3c76df7e94d3303257171c970 (diff) | |
Backport pull request #15690 from jellyfin/release-10.11.z
Fix: Add .ts fallback for video streams to prevent crash
Original-merge: 2a0b90e3852edae22d9f7cec197e6e81e9415632
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>
Diffstat (limited to 'Jellyfin.Api')
| -rw-r--r-- | Jellyfin.Api/Helpers/StreamingHelpers.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs index 2601fa3be..b3f5b9a80 100644 --- a/Jellyfin.Api/Helpers/StreamingHelpers.cs +++ b/Jellyfin.Api/Helpers/StreamingHelpers.cs @@ -159,6 +159,13 @@ public static class StreamingHelpers string? containerInternal = Path.GetExtension(state.RequestedUrl); + if (string.IsNullOrEmpty(containerInternal) + && (!string.IsNullOrWhiteSpace(streamingRequest.LiveStreamId) + || (mediaSource != null && mediaSource.IsInfiniteStream))) + { + containerInternal = ".ts"; + } + if (!string.IsNullOrEmpty(streamingRequest.Container)) { containerInternal = streamingRequest.Container; |
