mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-06 20:00:12 +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 });
|
||||
}, []);
|
||||
const onEnded = React.useCallback(() => {
|
||||
core.transport.dispatch({ action: 'Unload' }, 'player');
|
||||
pushToLibrary();
|
||||
if (player.libraryItem !== null) {
|
||||
core.transport.dispatch({
|
||||
action: 'Ctx',
|
||||
|
|
|
|||
Loading…
Reference in a new issue