mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5416 from jellyfin/bond-multiparts
Check if there are multiple parts before requesting them
This commit is contained in:
commit
074467e018
1 changed files with 1 additions and 1 deletions
|
@ -2157,7 +2157,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue