1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #6012 from thornbill/hide-collection-studios

Hide studios for collections and playlists
This commit is contained in:
Bill Thornton 2024-09-03 12:36:00 -04:00 committed by GitHub
commit 7d30057c37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {