mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Backport pull request #6012 from jellyfin-web/release-10.9.z
Hide studios for collections and playlists
Original-merge: 7d30057c37
Merged-by: thornbill <thornbill@users.noreply.github.com>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
819537da0f
commit
5b1ab478c1
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue