aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2024-02-10 16:56:21 +0100
committerShadowghost <Ghost_of_Stone@web.de>2024-02-10 16:56:21 +0100
commit7baa261b22b03fbf8b77c2ae04387af97acfdfc2 (patch)
treeb0504b989fb7a31c999b100aa54c168e2db981d9
parent52c79c050b638dc6556351346fa26d2eb81775b3 (diff)
DVD and BDMV folders can not be served directly
-rw-r--r--Jellyfin.Api/Controllers/VideosController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/VideosController.cs b/Jellyfin.Api/Controllers/VideosController.cs
index e6c319869..83f04d5be 100644
--- a/Jellyfin.Api/Controllers/VideosController.cs
+++ b/Jellyfin.Api/Controllers/VideosController.cs
@@ -461,7 +461,7 @@ public class VideosController : BaseJellyfinApiController
var outputPath = state.OutputFilePath;
// Static stream
- if (@static.HasValue && @static.Value)
+ if (@static.HasValue && @static.Value && !(state.MediaSource.VideoType == VideoType.BluRay || state.MediaSource.VideoType == VideoType.Dvd))
{
var contentType = state.GetMimeType("." + state.OutputContainer, false) ?? state.GetMimeType(state.MediaPath);