mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +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(() => {
|
const onNextVideoRequested = React.useCallback(() => {
|
||||||
if (player.nextVideo !== null) {
|
if (player.nextVideo !== null) {
|
||||||
nextVideo();
|
nextVideo();
|
||||||
|
|
||||||
const deepLinks = player.nextVideo.deepLinks;
|
const deepLinks = player.nextVideo.deepLinks;
|
||||||
if (deepLinks.metaDetailsStreams && deepLinks.player) {
|
|
||||||
|
if (deepLinks.player) {
|
||||||
window.location.replace(deepLinks.player);
|
window.location.replace(deepLinks.player);
|
||||||
} else {
|
} else if (deepLinks.metaDetailsStreams) {
|
||||||
window.location.replace(deepLinks.player ?? deepLinks.metaDetailsStreams);
|
window.location.replace(deepLinks.metaDetailsStreams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [player.nextVideo]);
|
}, [player.nextVideo]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue