kopia lustrzana https://github.com/iv-org/invidious
Add check to avoid saving player pos to the
length of the given video by saving a minimum of 15 at the endpull/2750/head
rodzic
a779cdd463
commit
d59323a601
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue