Movie watch progression tracking #63
@@ -423,6 +423,9 @@ 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));
|
||||
// Hide "resume/progress" once we're basically at the credits.
|
||||
// Backend uses 95% as the "credit roll" threshold too.
|
||||
if (pct < 95) {
|
||||
progressHtml = `
|
||||
<div class="mt-2">
|
||||
<div class="d-flex justify-content-between align-items-center text-muted small">
|
||||
@@ -434,6 +437,7 @@ window.addEventListener('DOMContentLoaded', async function () {
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
} else {
|
||||
progressHtml = `
|
||||
<div class="mt-2 text-muted small">
|
||||
|
||||
Reference in New Issue
Block a user