diff --git a/src/routes/Player/Player.js b/src/routes/Player/Player.js index e248856dd..ec224adeb 100644 --- a/src/routes/Player/Player.js +++ b/src/routes/Player/Player.js @@ -220,6 +220,19 @@ const Player = ({ urlParams }) => { }, 'player'); } }, [videoState.time, videoState.duration]); + React.useEffect(() => { + const interval = setInterval(() => { + core.dispatch({ + action: 'Player', + args: { + action: 'PushToLibrary' + } + }, 'player'); + }, 30000); + return () => { + clearInterval(interval); + }; + }, []); React.useLayoutEffect(() => { const onKeyDown = (event) => { switch (event.code) {