Skip to content

Commit

Permalink
Merge pull request #6012 from thornbill/hide-collection-studios
Browse files Browse the repository at this point in the history
Hide studios for collections and playlists
  • Loading branch information
thornbill authored Sep 3, 2024
2 parents b9925eb + d2e09f9 commit 7d30057
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controllers/itemDetails/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7d30057

Please sign in to comment.