mirror of
https://github.com/iv-org/invidious
synced 2024-11-10 21:23:34 +01:00
Merge pull request #2750 from 11Tuvork28/patch-2
Removes annoying video switching | Fixes #2736
This commit is contained in:
commit
8231216371
@ -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 New Issue
Block a user