From 93f42e3469da250f9c3ee66ea65f8340abf3c7ee Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Wed, 24 Apr 2024 18:24:36 +0200 Subject: [PATCH] Check if there are multiple parts before requesting them If the property exists it should always be larger than 1 so the second check isn't really needed --- src/components/playback/playbackmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index eb9d40a83b..9044e887bb 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -2168,7 +2168,7 @@ class PlaybackManager { const getAdditionalParts = async (items) => { const getOneAdditionalPart = async function (item) { let retVal = [item]; - if (item.Type === 'Movie' || item.Type === 'Episode') { + if (item.PartCount && item.PartCount > 1 && (item.Type === 'Movie' || item.Type === 'Episode')) { const client = ServerConnections.getApiClient(item.ServerId); const user = await client.getCurrentUser(); const additionalParts = await client.getAdditionalVideoParts(user.Id, item.Id);