mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 08:23:28 -03:00
Fix GET MetadataEditor ContentTypeOptions for inheritedContentType
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user