From 5b1ab478c1d392757fd9d97954d9bd5745acf8c5 Mon Sep 17 00:00:00 2001 From: thornbill Date: Sat, 7 Sep 2024 18:07:33 -0400 Subject: [PATCH] Backport pull request #6012 from jellyfin-web/release-10.9.z Hide studios for collections and playlists Original-merge: 7d30057c37ce33d4e3dc0fe29e5ead0026c020ef Merged-by: thornbill Backported-by: Joshua M. Boniface --- 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 56ef667d53..a2dc24d16e 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'; @@ -995,6 +996,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) {