From d2e09f9cae521647289e0cf8a52dea8dd9153718 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 3 Sep 2024 11:01:08 -0400 Subject: [PATCH] Hide studios for collections and playlists --- src/controllers/itemDetails/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index 71aebc57a4..78b20247c4 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -1,3 +1,4 @@ +import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind'; import { PersonKind } from '@jellyfin/sdk/lib/generated-client/models/person-kind'; import { intervalToDuration } from 'date-fns'; import DOMPurify from 'dompurify'; @@ -988,6 +989,9 @@ function renderDirector(page, item, context) { } function renderStudio(page, item, context) { + // The list of studios can be massive for collections of items + if ([BaseItemKind.BoxSet, BaseItemKind.Playlist].includes(item.Type)) return; + const studios = item.Studios || []; const html = studios.map(function (studio) {