diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index e90aff609fe..a0360080331 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -22,6 +22,7 @@ import { MediaType } from '@jellyfin/sdk/lib/generated-client/models/media-type' import { MediaError } from 'types/mediaError'; import { getMediaError } from 'utils/mediaError'; +import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind.js'; const UNLIMITED_ITEMS = -1; @@ -2573,8 +2574,15 @@ export class PlaybackManager { } const apiClient = ServerConnections.getApiClient(item.ServerId); - const mediaSourceId = playOptions.mediaSourceId || item.Id; - const getMediaStreams = apiClient.getItem(apiClient.getCurrentUserId(), mediaSourceId) + let mediaSourceId; + + const isLiveTv = [BaseItemKind.TvChannel, BaseItemKind.LiveTvChannel].includes(item.Type); + + if (!isLiveTv) { + mediaSourceId = playOptions.mediaSourceId || item.Id; + } + + const getMediaStreams = isLiveTv ? Promise.resolve([]) : apiClient.getItem(apiClient.getCurrentUserId(), mediaSourceId) .then(fullItem => { return fullItem.MediaStreams; });