diff options
| author | 11Tuvork28 <zofi@xamh.de> | 2021-12-31 03:24:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-31 03:24:08 +0100 |
| commit | d59323a60162dec8f0fc8f4a8b74199c0f6e30cc (patch) | |
| tree | dc0c1abd8cc06b399c8baebf1a6fd08e51f0b5b7 /assets/js/player.js | |
| parent | a779cdd46344faea70771bb93e958a07122a2f08 (diff) | |
| download | invidious-d59323a60162dec8f0fc8f4a8b74199c0f6e30cc.tar.gz invidious-d59323a60162dec8f0fc8f4a8b74199c0f6e30cc.tar.bz2 invidious-d59323a60162dec8f0fc8f4a8b74199c0f6e30cc.zip | |
Add check to avoid saving player pos to the
length of the given video by saving a minimum of 15 at the end
Diffstat (limited to 'assets/js/player.js')
| -rw-r--r-- | assets/js/player.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 0cc4bab9..d45ff5d0 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -215,7 +215,7 @@ if (video_data.params.save_player_pos) { const raw = player.currentTime(); const time = Math.floor(raw); - if(lastUpdated !== time) { + if(lastUpdated !== time && raw <= video_data.length_seconds - 15) { save_video_time(time); lastUpdated = time; } |
