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

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
This commit is contained in:
Bond_009 2024-04-24 18:24:36 +02:00
parent 1d67f43a2e
commit 93f42e3469

View file

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