From cbffa1fd8bb5612c29ee930b280137462d97983a Mon Sep 17 00:00:00 2001 From: Jonathan Sykes Date: Sat, 3 Oct 2026 00:59:18 +0800 Subject: [PATCH] Saves: paint progress only on Downloads rows, not on search/playlist cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every card of a video carries .downloading while it saves, so the progress painter rewrote their channel line and its final repaint left 'Saving for offline…' on the card after the save had finished. --- frontend/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index 05863df..4cce212 100755 --- a/frontend/app.js +++ b/frontend/app.js @@ -305,7 +305,9 @@ const SaveQueue = (() => { return '⏳ Saving for offline…'; } function paint(id) { - const row = document.querySelector(`.card.downloading[data-id="${CSS.escape(id)}"]`); + // Only the Downloads view's own rows: search/playlist cards also carry + // .downloading while a save runs, and their channel line must not be touched. + const row = document.querySelector(`.card.dl-row[data-id="${CSS.escape(id)}"]`); if (!row) return; const p = get(id); const ch = row.querySelector('.card-channel'); @@ -8468,7 +8470,7 @@ function renderDownloads() { const rowFor = (v, isPaused) => { const row = document.createElement('div'); - row.className = 'card downloading' + (isPaused ? ' dl-paused' : ''); + row.className = 'card downloading dl-row' + (isPaused ? ' dl-paused' : ''); row.dataset.id = v.id; row.innerHTML = `