Movie watch progression tracking #63

Merged
quoije merged 3 commits from cursor/movie-watch-progression-tracking-d4eb into 2026 2025-12-22 19:58:37 -05:00
Showing only changes of commit 2508843153 - Show all commits
+4
View File
@@ -423,6 +423,9 @@ window.addEventListener('DOMContentLoaded', async function () {
if (time > 1) { if (time > 1) {
if (duration && Number.isFinite(duration) && duration > 0) { if (duration && Number.isFinite(duration) && duration > 0) {
const pct = Math.max(0, Math.min(100, (time / duration) * 100)); const pct = Math.max(0, Math.min(100, (time / duration) * 100));
// Hide "resume/progress" once we're basically at the credits.
// Backend uses 95% as the "credit roll" threshold too.
if (pct < 95) {
progressHtml = ` progressHtml = `
<div class="mt-2"> <div class="mt-2">
<div class="d-flex justify-content-between align-items-center text-muted small"> <div class="d-flex justify-content-between align-items-center text-muted small">
@@ -434,6 +437,7 @@ window.addEventListener('DOMContentLoaded', async function () {
</div> </div>
</div> </div>
`; `;
}
} else { } else {
progressHtml = ` progressHtml = `
<div class="mt-2 text-muted small"> <div class="mt-2 text-muted small">