diff --git a/src/components/metadataEditor/metadataEditor.js b/src/components/metadataEditor/metadataEditor.js index b40a858b6b7..3253cc6873f 100644 --- a/src/components/metadataEditor/metadataEditor.js +++ b/src/components/metadataEditor/metadataEditor.js @@ -21,7 +21,8 @@ import ServerConnections from '../ServerConnections'; import toast from '../toast/toast'; import { appRouter } from '../router/appRouter'; import template from './metadataEditor.template.html'; -import { SeriesStatus } from '@jellyfin/sdk/lib/generated-client'; +import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind'; +import { SeriesStatus } from '@jellyfin/sdk/lib/generated-client/models/series-status'; let currentContext; let metadataEditorInfo; @@ -541,7 +542,7 @@ function setFieldVisibilities(context, item) { hideElement('#fldPath', context); } - if (item.Type === 'Series' || item.Type === 'Movie' || item.Type === 'Trailer' || item.Type === 'Person') { + if ([BaseItemKind.Series, BaseItemKind.Season, BaseItemKind.Episode, BaseItemKind.Movie, BaseItemKind.Trailer, BaseItemKind.Person].includes(item.Type)) { showElement('#fldOriginalName', context); } else { hideElement('#fldOriginalName', context);