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

Fix playback error stop

This commit is contained in:
Dmitry Lyzo 2021-09-11 23:24:38 +03:00
parent 3140fca136
commit 6b4c4d3140

View file

@ -3064,7 +3064,9 @@ class PlaybackManager {
const data = getPlayerData(player);
const streamInfo = data.streamInfo;
const nextItem = self._playNextAfterEnded ? self._playQueueManager.getNextItemInfo() : null;
const errorOccurred = displayErrorCode && typeof (displayErrorCode) === 'string';
const nextItem = self._playNextAfterEnded && !errorOccurred ? self._playQueueManager.getNextItemInfo() : null;
const nextMediaType = (nextItem ? nextItem.item.MediaType : null);
@ -3105,7 +3107,7 @@ class PlaybackManager {
removeCurrentPlayer(player);
}
if (displayErrorCode && typeof (displayErrorCode) === 'string') {
if (errorOccurred) {
showPlaybackInfoErrorMessage(self, 'PlaybackError' + displayErrorCode);
} else if (nextItem) {
self.nextTrack();