The Free Software Media System - Server Backend & API
Fix GET MetadataEditor ContentTypeOptions for inheritedContentType
SmeagolWorms4d0950c8f090c
diff --git a/Jellyfin.Api/Controllers/ItemUpdateController.cs b/Jellyfin.Api/Controllers/ItemUpdateController.csindex e1d9b6bba0..28ea2033d8 100644--- a/Jellyfin.Api/Controllers/ItemUpdateController.cs+++ b/Jellyfin.Api/Controllers/ItemUpdateController.cs@@ -180,11 +180,14 @@ public class ItemUpdateController : BaseJellyfinApiControllerinfo.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();}}