From 250884315392dea3f5b26eb8c429e51b2355027c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 23 Dec 2025 00:50:15 +0000 Subject: [PATCH] Fix: Hide resume/progress bar when near end of video Co-authored-by: mathieumoran1 --- public/js/app_movies.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/public/js/app_movies.js b/public/js/app_movies.js index 5eced52..ddd1c43 100644 --- a/public/js/app_movies.js +++ b/public/js/app_movies.js @@ -423,17 +423,21 @@ window.addEventListener('DOMContentLoaded', async function () { if (time > 1) { if (duration && Number.isFinite(duration) && duration > 0) { const pct = Math.max(0, Math.min(100, (time / duration) * 100)); - progressHtml = ` -
-
- Reprendre à ${formatClock(time)} - ${pct.toFixed(0)}% + // Hide "resume/progress" once we're basically at the credits. + // Backend uses 95% as the "credit roll" threshold too. + if (pct < 95) { + progressHtml = ` +
+
+ Reprendre à ${formatClock(time)} + ${pct.toFixed(0)}% +
+
+
+
-
-
-
-
- `; + `; + } } else { progressHtml = `