Skip to content

The Free Software Media System - Server Backend & API

Backport pull request #15690 from jellyfin/release-10.11.z

martenumberto1af1c72e81c3
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 43954c0837..0fd509f842 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -208,6 +208,7 @@
- [GeneMarks](https://github.com/GeneMarks)
- [Kirill Nikiforov](https://github.com/allmazz)
- [bjorntp](https://github.com/bjorntp)
+ - [martenumberto](https://github.com/martenumberto)
# Emby Contributors
diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs
index 2601fa3be8..b3f5b9a801 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;