aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2025-12-24 10:28:58 +0100
committerGitHub <noreply@github.com>2025-12-24 10:28:58 +0100
commitf9fec33048f73f95ead0fcd711ce172dd9f38fcd (patch)
tree19c3ea193bf80eeaab4711828bfd49152d01ec61
parent934a9c9e32fc11154343a30447482fdaa697392f (diff)
parentd0950c8f090ca56ec0a1874a0f8fb9195015582d (diff)
Merge pull request #15797 from Smeagolworms4/fix-get-metadata-editor-info
Fix GET MetadataEditor ContentTypeOptions for mixed content
-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();
}
}