aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--Jellyfin.Api/Helpers/StreamingHelpers.cs7
2 files changed, 8 insertions, 0 deletions
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;