mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add check to avoid saving player pos to the
length of the given video by saving a minimum of 15 at the end
This commit is contained in:
parent
a779cdd463
commit
d59323a601
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue