mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-21 13:52:10 +00:00
update library item on video ended
This commit is contained in:
parent
8238952565
commit
cba21f260b
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ const Player = ({ urlParams, queryParams }) => {
|
||||||
setVideoState({ [propName]: propValue });
|
setVideoState({ [propName]: propValue });
|
||||||
}, []);
|
}, []);
|
||||||
const onEnded = React.useCallback(() => {
|
const onEnded = React.useCallback(() => {
|
||||||
core.transport.dispatch({ action: 'Unload' }, 'player');
|
pushToLibrary();
|
||||||
if (player.libraryItem !== null) {
|
if (player.libraryItem !== null) {
|
||||||
core.transport.dispatch({
|
core.transport.dispatch({
|
||||||
action: 'Ctx',
|
action: 'Ctx',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue