From ae0055c49483568aa244b4e7fe2f80e24ae2e53a Mon Sep 17 00:00:00 2001 From: cvium Date: Fri, 10 Sep 2021 13:09:24 +0200 Subject: [PATCH] Missing linebreaks that Rider apparently can't just do for me? --- Jellyfin.Api/Controllers/VideosController.cs | 1 + Jellyfin.Api/Helpers/AudioHelper.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Jellyfin.Api/Controllers/VideosController.cs b/Jellyfin.Api/Controllers/VideosController.cs index e5c27f9e67..150f22d1b8 100644 --- a/Jellyfin.Api/Controllers/VideosController.cs +++ b/Jellyfin.Api/Controllers/VideosController.cs @@ -458,6 +458,7 @@ namespace Jellyfin.Api.Controllers { return NotFound(); } + var liveStream = new ProgressiveFileStream(liveStreamInfo.GetStream()); // TODO (moved from MediaBrowser.Api): Don't hardcode contentType return File(liveStream, MimeTypes.GetMimeType("file.ts")!); diff --git a/Jellyfin.Api/Helpers/AudioHelper.cs b/Jellyfin.Api/Helpers/AudioHelper.cs index e503551296..a5e47b8eca 100644 --- a/Jellyfin.Api/Helpers/AudioHelper.cs +++ b/Jellyfin.Api/Helpers/AudioHelper.cs @@ -126,6 +126,7 @@ namespace Jellyfin.Api.Helpers { throw new FileNotFoundException(); } + var liveStream = new ProgressiveFileStream(liveStreamInfo.GetStream()); // TODO (moved from MediaBrowser.Api): Don't hardcode contentType return new FileStreamResult(liveStream, MimeTypes.GetMimeType("file.ts"));