Merge pull request #5681 from dmitrylyzo/fix-loading

Fix loading hides too early
This commit is contained in:
Bill Thornton 2024-06-08 18:29:57 -04:00 committed by GitHub
commit 674b0b118f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2295,7 +2295,7 @@ class PlaybackManager {
return playAfterBitrateDetect(bitrate, item, playOptions, onPlaybackStartedFn, prevSource)
.catch(onPlaybackRejection);
})
.finally(() => {
.catch(() => {
if (playOptions.fullscreen) {
loading.hide();
}
@ -2354,8 +2354,6 @@ class PlaybackManager {
return;
}
loading.hide();
const options = Object.assign({}, playOptions);
options.mediaType = item.MediaType;