From 2a4136a5f61faa24fbba10d72a6ea25bd10074c6 Mon Sep 17 00:00:00 2001 From: Daniel <790119+DanTheMan827@users.noreply.github.com> Date: Fri, 13 Mar 2026 11:59:26 -0500 Subject: [PATCH] fix(downloads): progress index now shows correct track number in bulk download --- js/downloads.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/downloads.js b/js/downloads.js index 0ef08d1..edbcbf9 100644 --- a/js/downloads.js +++ b/js/downloads.js @@ -838,7 +838,7 @@ function updateBulkDownloadProgress(notifEl, current, total, currentItem, progre const percent = progress.progress || 0; progressFill.style.width = `${percent}%`; progressFill.style.background = '#3b82f6'; // Blue for encoding - statusEl.textContent = `Converting ${Math.ceil(current)}/${total}: ${Math.round(percent)}%`; + statusEl.textContent = `Converting ${Math.floor(current + 1)}/${total}: ${Math.round(percent)}%`; return; } @@ -849,7 +849,7 @@ function updateBulkDownloadProgress(notifEl, current, total, currentItem, progre const percent = total > 0 ? Math.round((current / total) * 100) : 0; progressFill.style.width = `${percent}%`; progressFill.style.background = 'var(--highlight)'; - statusEl.textContent = `${Math.floor(current)}/${total} - ${currentItem}`; + statusEl.textContent = `${Math.floor(current + 1)}/${total} - ${currentItem}`; } function completeBulkDownload(notifEl, success = true, message = null) {