mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
test(player): fix binge watching (2)
This commit is contained in:
parent
6bfe079030
commit
0efd1453bb
1 changed files with 4 additions and 4 deletions
|
|
@ -216,12 +216,12 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
const onNextVideoRequested = React.useCallback(() => {
|
||||
if (player.nextVideo !== null) {
|
||||
nextVideo();
|
||||
|
||||
const deepLinks = player.nextVideo.deepLinks;
|
||||
if (deepLinks.metaDetailsStreams && deepLinks.player) {
|
||||
|
||||
if (deepLinks.player) {
|
||||
window.location.replace(deepLinks.player);
|
||||
} else {
|
||||
window.location.replace(deepLinks.player ?? deepLinks.metaDetailsStreams);
|
||||
} else if (deepLinks.metaDetailsStreams) {
|
||||
window.location.replace(deepLinks.metaDetailsStreams);
|
||||
}
|
||||
}
|
||||
}, [player.nextVideo]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue