aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers
diff options
context:
space:
mode:
authorSmeagolWorms4 <smeagolworms4@gmail.com>2025-12-15 13:47:14 +0100
committerSmeagolWorms4 <smeagolworms4@gmail.com>2025-12-15 23:11:01 +0100
commitd0950c8f090ca56ec0a1874a0f8fb9195015582d (patch)
treeac77e37147d8879cf0d6a9a5e8deaae88a310b70 /Jellyfin.Api/Controllers
parent771b0a7eabc7c3082dd5b328f121417385a1fc99 (diff)
Fix GET MetadataEditor ContentTypeOptions for inheritedContentType
Diffstat (limited to 'Jellyfin.Api/Controllers')
-rw-r--r--Jellyfin.Api/Controllers/ItemUpdateController.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/ItemUpdateController.cs b/Jellyfin.Api/Controllers/ItemUpdateController.cs
index e1d9b6bba..28ea2033d 100644
--- a/Jellyfin.Api/Controllers/ItemUpdateController.cs
+++ b/Jellyfin.Api/Controllers/ItemUpdateController.cs
@@ -180,11 +180,14 @@ public class ItemUpdateController : BaseJellyfinApiController
info.ContentTypeOptions = GetContentTypeOptions(true).ToArray();
info.ContentType = configuredContentType;
- if (inheritedContentType is null || inheritedContentType == CollectionType.tvshows)
+ if (inheritedContentType is null
+ || inheritedContentType == CollectionType.tvshows
+ || inheritedContentType == CollectionType.movies)
{
info.ContentTypeOptions = info.ContentTypeOptions
.Where(i => string.IsNullOrWhiteSpace(i.Value)
- || string.Equals(i.Value, "TvShows", StringComparison.OrdinalIgnoreCase))
+ || string.Equals(i.Value, "TvShows", StringComparison.OrdinalIgnoreCase)
+ || string.Equals(i.Value, "Movies", StringComparison.OrdinalIgnoreCase))
.ToArray();
}
}