From 161f70e3036d48846d76e249f83bf0da6ae34623 Mon Sep 17 00:00:00 2001 From: Gus Libens <27970303+goestav@users.noreply.github.com> Date: Wed, 29 Apr 2026 16:06:31 +0200 Subject: [PATCH] fix: avoid marking as watched when watch history is disabled --- assets/js/player.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/player.js b/assets/js/player.js index e990fc434..45d4ec17b 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -198,6 +198,9 @@ player.on('timeupdate', function () { elem_iv_listen.href = addCurrentTimeToURL(base_url_iv_listen, domain); } + // User has watch history disabled + if (!video_data.preferences.watch_history) return; + // Only increase time watched when the time difference is one second and the video has not been marked as watched const isOneSecondDifference = current_ts - last_player_time === 1; const exceedsMarkWatchedAfterDuration = time_watched > MARK_WATCHED_AFTER_DURATION;